diff --git a/inc/fields.class.php b/inc/fields.class.php index c9f31b642..c5e68c30a 100644 --- a/inc/fields.class.php +++ b/inc/fields.class.php @@ -171,7 +171,7 @@ public static function isVisible(PluginFormcreatorConditionnableInterface $item, $evalItem[$itemtype][$itemId] = null; // Force the first logic operator to OR - $conditions[0]['logic'] = 'OR'; + $conditions[0]['logic'] = PluginFormcreatorCondition::SHOW_LOGIC_OR; $return = false; $lowPrecedenceReturnPart = false; @@ -182,7 +182,7 @@ public static function isVisible(PluginFormcreatorConditionnableInterface $item, $nextLogic = $conditions[$order + 1]['logic']; } else { // To ensure the low precedence return part is used at the end of the whole evaluation - $nextLogic = 'OR'; + $nextLogic = PluginFormcreatorCondition::SHOW_LOGIC_OR; } // TODO: find the best behavior if the question does not exists