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

Tree selectionRoot string assignment

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 5.4 Certification
    • Field types

    Description

      Hi,

      In the Relation Converter, method toFieldDefinition(), you use a string assignment in case of "$storageDef->dataInt2" equals 0.

      $fieldDef->fieldTypeConstraints->fieldSettings['selectionRoot'] = $storageDef->dataInt2 === 0 ? '' : $storageDef->dataInt2;

      But, it's an integer variable, so it makes an error.
      I changed it for a ternary condition without string.

      $fieldDef->fieldTypeConstraints->fieldSettings['selectionRoot'] = $storageDef->dataInt2 === 0 ? null : $storageDef->dataInt2;

      Rgds,
      C Vincent

      Attachments

        Activity

          People

            Unassigned Unassigned
            contact@vincent-catillon.fr contact@vincent-catillon.fr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: