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

object.main_node.name does not work properly with secondary languages

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.8.6
    • Language
    • None
    • Operating System: Linux FC5
      PHP Version: 4.4.3
      Database and version: Mysql 5.0.22
      Browser (and version): Any

    Description

      The template expression $object.main_node.name returns the name using the *default language* and to the currently active language.

      Thus
      {{
      node.name != node.object.main_node.name
      }}

      Steps to reproduce

      Two languages are defined: IT as default and EN as secondary.
      An object is created in the default language and a translation is added.

      The value $obj.main_node.name returns the main language translation (IT, in our case).

      Attachments

        Activity

          People

            unknown unknown
            ghige ghige
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: