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

Typo in ezobjectrelationlisttype.php ($relList)

    Details

      Description

      In 5.4.10 file ezpublish_legacy/kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php looks like:

      435                        $relationList = $attributeTranslation->value();
      436                        foreach ($relList['relation_list'] as $relationItem) {
      437                            $existingRelations[] = $relationItem['contentobject_id'];
      438                        }
      439                    }
      440                }
      441
      442                // fetch existing attribute translations for current editing version
      443                foreach( $contentObjectAttribute->fetchAttributeTranslations() as $attributeTranslation )
      444                {
      445                    if ( $attributeTranslation->LanguageCode === $languageCode )
      446                        continue;
      447
      448                    $relationList = $attributeTranslation->value();
      449                    foreach ($relationList['relation_list'] as $relationItem) {
      450                        $existingRelations[] = $relationItem['contentobject_id'];
      451                    }
      452                }
      

      In 5.4.7 the typo was fixed on line 449, but the $relList typo still exists on line 436.

        Issue Links

          Activity

          Hide
          Eduardo Fernandes (Inactive) added a comment -

          No QA needed

          Show
          Eduardo Fernandes (Inactive) added a comment - No QA needed

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: