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

content/edit language selection always propose to create a new translation in 4.3 (admin2)

    XMLWordPrintable

Details

    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

        Activity

          People

            cpg cpg
            9e9f2c72-d8ff-4ec0-b8df-c5a744234b9a@accounts.ibexa.co Jérôme Vieilledent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: