Skip to content
Discussion options

You must be logged in to vote

Hmm the code look fine to me at 1st glance. But I will do a few things differently, maybe this might solve your problem.

  1. Use a text filter instead of overriding searchLogic for your id column. So remove your searchLogic function and add this filter instead
$this->crud->addFilter(
            [
                'type' => 'text',
                'name' => 'id',
                'label' => 'R ID',
            ],
            false,
            function ($value) {
                $this->crud->addClause('where', 'id', $value);
            }
        );
  1. Your simple filter for excluded archived looks fine to me, but I wonder if changing '0' to false or 0 will fix things. You may want to give it …

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@lukepower
Comment options

@ziming
Comment options

Answer selected by jcastroa87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants