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

Regression caused by " Remove extraneous op_code handling in storing content relations"

    Details

      Description

      the commit from issue ezp-20239 causes the fetch operator to break with some parameters. case example :

      {set $test=fetch( 'content', 'related_objects', hash( 'object_id', $node.object.id, 'attribute_identifier', 'article/title' ) )}

      the cause is the missing line (from the commit):

      $relatedClassIdentifiersSQL

      • ezcontentobject_link.op_code='0'
        $relationTypeMasking

      it causes a mysql syntax error with the code:
      ...ezcontentobject.status=1 AND

      AND contentclassattribute_id=....

        Issue Links

          Activity

          Show
          Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-legacy/pull/650
          Show
          Petar Spanja (Inactive) added a comment - Fixed in ezpublish-legacy/master in https://github.com/ezsystems/ezpublish-legacy/commit/fad9a6a27e8a11933875920151e36cbba09eb608
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Bras (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 15 minutes
                6h 15m