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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.6.0alpha1
    • 4.5.0, 4.6.0-dev
    • None
    • 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

            andre1 andre1
            desorden desorden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: