Fix AbstractObjectTextPropertyCondition::getData()
authorMatthias Schmidt <gravatronics@live.com>
Mon, 22 Jun 2015 17:13:03 +0000 (19:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 22 Jun 2015 17:13:17 +0000 (19:13 +0200)
wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php

index a9b8c0e7673e2a8d675a830473179752bd31050a..d5e10880339eb6355b25ea9f5272bb524914fcb7 100644 (file)
@@ -60,7 +60,7 @@ abstract class AbstractObjectTextPropertyCondition extends AbstractTextCondition
        
        /**
         * Returns the name of the relevant database object class.
-        *
+        * 
         * @return      string
         */
        protected function getClassName() {
@@ -77,7 +77,7 @@ abstract class AbstractObjectTextPropertyCondition extends AbstractTextCondition
                }
                
                return [
-                       $this->fieldName => preg_split('/\s*,\s*/', $value, -1, PREG_SPLIT_NO_EMPTY)
+                       $this->fieldName => preg_split('/\s*,\s*/', $value[$this->fieldName], -1, PREG_SPLIT_NO_EMPTY)
                ];
        }