*/
class ChangesListStringOptionsFilter extends ChangesListFilter {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function displaysOnUnstructuredUi() {
return false;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function isSelected( FormOptions $opts ) {
- $values = explode(
- ChangesListStringOptionsFilterGroup::SEPARATOR,
- $opts[ $this->getGroup()->getName() ]
- );
+ $option = $opts[ $this->getGroup()->getName() ];
+ if ( $option === ChangesListStringOptionsFilterGroup::ALL ) {
+ return true;
+ }
+
+ $values = explode( ChangesListStringOptionsFilterGroup::SEPARATOR, $option );
return in_array( $this->getName(), $values );
}
}