Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17839

object states: set button doesn't work in the presence of custom action buttons

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.2.1, 4.3.1, 4.4.1, 4.5.0beta1
    • 4.2.0, 4.3.0
    • None
    • PHP Version: 5.3.2
      Database and version: MySQL 5.1.41
      Browser (and version): Firefox 3.6, Chrome 8.0

    Description

      When creating a new object, change the current object state and click the "set" button to save the new object state, after reloading the page, the former object state (in that case the default state) is shown instead of the newly selected state.

      This happens only with new drafts and when combined with other custom action buttons on the page. Setting the object state in edit mode with already published objects works as expected.

      Steps to reproduce

      First add the following custom action button to design/admin/templates/content/edit_states.tpl:

      <input class="button" type="submit" name="TestCustomButton" value="{'View'|i18n( 'design/admin/content/edit' )}" title="{'View the draft that is being edited.'|i18n( 'design/admin/content/edit' )}" />
      <input class="hidden" type="hidden" name="CustomActionButton[TestCustomButton]" value="1" />
      

      After this:

      • Create a new article
      • Under the states section, select a non-default state
      • Click the 'Set' button, resulting in an automatic page reload
      • After the reload, notice that the state switches back to the default state

      Attachments

        Activity

          People

            ls ls
            naas@ez.no naas@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: