Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.3.0
-
None
Description
Hi
I just upgraded one of my eZ Publish instances to 4.3.0 and I noticed that when I want to edit an object (by clicking the pencil in sub-elements frame), eZ Publish always propose me to create a new translation instead of just edit the first one like it was in previous admin design.
I wondered why both were checked and so I looked into design/admin2/templates/content/edit_languages.tpl and found a weird line of code (line 68) :
{def $select_first_language = $object_create_languages|count|eq( 1 )}
and further (line 71) :
<input name="EditLanguage" type="radio" value="{$language.locale}"{if $select_first_language} checked="checked"{/if} /> {$language.name|wash}
I real wonder the utility of $select_first_language...
Steps to reproduce
With only one language installed (different thant eng-GB), try to edit an object
Attachments
Issue Links
- is duplicated by
-
EZP-16236 When editing an object in a multi language settings, eZ offers to create a new translation by default
- Closed