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

Commenting on an object in a not existing translation results in error

    XMLWordPrintable

Details

    Description

      When you add comment to an object in a language which the object doesn't have translation in (for instance, french), the page will return error

      ( ! ) Notice: Undefined variable: contentObject in /Users/xc/Dev/trunk/extension/ezcomments/modules/comment/add.php on line 40

      ( ! ) Notice: Undefined variable: languageCode in /Users/xc/Dev/trunk/extension/ezcomments/modules/comment/add.php on line 40

      ( ! ) Notice: Undefined variable: foundCommentAttribute in /Users/xc/Dev/trunk/extension/ezcomments/modules/comment/add.php on line 40
      ..

      Steps to reproduce

      1) create an object with comment attribute in English, do not translate it
      2) view the object in English siteaccess
      3) Comment that object, it works fine
      4) go to the object page, switch to another language (for instance, French)
      5) the comment form is shown, add comment, click the 'Add comment' button

      Verify that there is error message described in the description.

      Attachments

        Activity

          People

            chen chen
            chen chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: