model/behavior/searchable.php
protected function _afterReset(KModelContextInterface $context)
    {
        $reset_columns = false;

        if ($context->modified)
        {
            if (in_array('search', $context->modified->toArray())) {
                $reset_columns = true;
            }
        }
        else $reset_columns = true;

        if ($reset_columns && ($key = array_search('ip', $this->_columns))) {
            unset($this->_columns[$key]);
        }
    }
protected function _afterReset(KModelContextInterface $context)
    {
        $reset_columns = false;

        if ($context->modified)
        {
            if (in_array('search', $context->modified->toArray())) {
                $reset_columns = true;
            }
        }
        else $reset_columns = true;

        if ($reset_columns && ($key = array_search('ip', $this->_columns))) {
            unset($this->_columns[$key]);
        }
    }
protected function _afterReset ( KModelContextInterface $ context ) { $ reset_columns = false ; if ( $ context -> modified ) { if ( in_array ( 'search' , $ context -> modified -> toArray ( ) ) ) { $ reset_columns = true ; } } else $ reset_columns = true ; if ( $ reset_columns && ( $ key = array_search ( 'ip' , $ this -> _columns ) ) ) { unset ( $ this -> _columns [ $ key ] ) ; } }
Resets the columns property by making sure that ip if removed when the state gets reset.
Resets the columns property by making sure that ip if removed when the state gets reset .