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

eZContentObjectTreeNode::fetch() SQL error when conditions argument is given

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.4, 4.2.0
    • 4.0.6, 4.1.3, 4.2.0alpha1, 4.2.0beta1, 4.2.0rc1, 4.2.0rc2
    • Database related, Misc
    • None

    Description

      When calling eZContentObjectTreeNode::fetch() by having $conditions argument set, one gets SQL error:

      Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ANDezcontentobject_tree.contentobject_version='4' AND
      ezc' at line 11.

      $sqlCondition string concatenation is missing spaces.

      Steps to reproduce
      $node = eZContentObjectTreeNode::fetch($nodeID, false, true, array('contentobject_version' => $contentObjectVersion));
      

      Attachments

        Activity

          People

            bd bd
            rojarvin rojarvin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: