Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12739

Wrong overrided property value from view

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.9.11, 4.10.0
    • 4.10.0
    • None
    • None

      I have a content type AbstractType defined like this:

      <attribute name="link" type="content" contentType="content-type.AbstractType"/>
      <property name="label" path="title"/>

      And another type FinalType extending AbstractType with this:

      <property name="label" path="libelle"/>

      From a content of type FinalType I call:

      content.getValue("label")

      or

      content.getValue("link/label", true)

      and I obtain the value contained in the "libelle" attribute.

      But if I do:

      content.dataToJSON(view)

      with a view referencing link / label. I obtain the value contained in the "title" attribute.

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: