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

php warning in content/edit with multilingual install (language translation selection template)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.5.0, 4.6.0-dev
    • Fix Version/s: 4.6.0alpha1
    • Labels:
      None
    • Environment:

      Last ez publish taken from github
      last versions of chromium and firefox browsers

      Description

      Hi.

      Having a multilingual site, a warning php rise when you edit an object and you don't wan't to translate it. just edit again the first version of the example.

      The error came because js code set disabled property to the 'FromLanguage' radio button. it is enabled again only if you select another language to be edited, different from the main one.

      As this radio button is disabled, php warning is shown for line 194 of kernel/content/edit.php file

      $selectedFromLanguage = $http->postVariable( 'FromLanguage' );
      
      Steps to reproduce
      • Install a bilingual site
      • Add a new object
      • Go to your dashbord and try to edit same object again.
      • In the language selection screen, just leave all as default and go to edit the object.

      Note: For better catch of the warning you may want to have DebugRedirection enabled.

      You will see something like

      Warning: eZHTTPTool 	Jun 15 2011 22:20:01
      
      Undefined post variable: FromLanguage
      

        Attachments

          Activity

            People

            Assignee:
            andre1 André R
            Reporter:
            desorden Carlos Revillo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: