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

[ContentSearchHelper] the #getAttributeValue should not take the modelItem as parameter

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.0
    • 4.3.0
    • None
    • None
    • 1 - Middle term
    • 2 - Normal

      The ContentSearchHelper#getAttributeValue receives a content, a data path and a model item. But the model item could be computed via a content#getDefinition(dataPath) call

      This could lead to less errors because the given model item could be wrong.

      Example with Jira CMS-10299: The given model item was the title attribute definition staticly computed by ContentTypesHelper#getTitleAttributeDefinition, with a String type. But the content had a multilingual title (this was an error fixed in the CMS-10299). This led to an error in value transforming

            cbayle Caroline Bayle
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: