Details
-
Bug
-
Resolution: Fixed
-
Medium
-
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
Issue Links
- relates to
-
EZP-15128 Losing input when assigning Object state in edit form
-
- Closed
-