[TASK] Support operation contains for checkboxes
authorOliver Eglseder <oliver.eglseder@in2code.de>
Thu, 3 Sep 2015 14:37:38 +0000 (16:37 +0200)
committerOliver Eglseder <oliver.eglseder@in2code.de>
Thu, 3 Sep 2015 14:37:38 +0000 (16:37 +0200)
Classes/Domain/Comparator/Comparator.php

index 878ab01..1804815 100644 (file)
@@ -87,6 +87,9 @@ class Comparator {
         * @return bool
         */
        public function operationContainsValue($left, $right) {
+               if (is_array($left)) {
+                       return in_array($right, $left);
+               }
                return (strpos($left, $right) !== FALSE);
        }