protected function fetchConditions() { parent::fetchConditions(); $filter_username = $this->getState('filter.username'); if (strlen($filter_username)) { $this->setCondition('username', $filter_username); } }