Merge "RC Filters: Detect filters conflicts to by-pass db query"
[lhc/web/wiklou.git] / includes / changes / ChangesListStringOptionsFilter.php
index 1c977b9..6754d67 100644 (file)
@@ -14,4 +14,15 @@ class ChangesListStringOptionsFilter extends ChangesListFilter {
        public function displaysOnUnstructuredUi() {
                return false;
        }
+
+       /**
+        * @inheritdoc
+        */
+       public function isSelected( FormOptions $opts ) {
+               $values = explode(
+                       ChangesListStringOptionsFilterGroup::SEPARATOR,
+                       $opts[ $this->getGroup()->getName() ]
+               );
+               return in_array( $this->getName(), $values );
+       }
 }