Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.6, 4.1.3, 4.2.0alpha1, 4.2.0beta1, 4.2.0rc1, 4.2.0rc2
-
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));