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

eZContentObjectTreeNode::createAttributeFilterSQLStrings() returns invalid 'in'/'not in' SQL statements

    XMLWordPrintable

    Details

      Description

      Test case:

      • create 5 classes of type 'bar' named : 1, 3, foo, 1foo, foo_1
      • execute :
        $names = array ('1', 'foo');
        $nodes = eZFunctionHandler::execute(
                        'content',
                        'list',
                        array(
                            'parent_node_id' => 1,
                            'depth' => 0,
                            'class_filter_type' => 'include',
                            'class_filter_array' => array('bar'),
                            'sort_by' => array ('name' => 'asc'),
                            'attribute_filter' => array (array('name', 'in', $names)),
                        ));
        

      Expected : Classes named 1 and foo
      Actual : no restriction is applied

      PR: https://github.com/ezsystems/ezpublish-legacy/pull/1097

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              FoXCoRe Guillaume LECERF
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: