Custom Views (for ListOperation) PRO #903
Replies: 2 comments 1 reply
-
Hey @pxpm He is trying to alter a
Do you know a way to do it? What condition can help here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @4lbane Finally, I found the solution. We need to remove the base public function setupArchivesView(){
$this->crud->query->getQuery()->wheres = []; // clear where clauses
$this->crud->query->getQuery()->bindings['where'] = []; // clear where value params
$this->crud->addClause('where', 'archive', '=', '1');
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello !
I think that I'm missing something about the new custom views for ListOperation (PRO)
I have a list of "Hot Air Balloons" and I need to display :
I have done this with :
But, in my 'setupArchivesView', I have 0 results and when I dump($this->crud), I see that the addClause from the setupListOperation() is applied : the first where has been combined with the second where.
How can I remove the addClause from the setupListOperation() in the setupArchivesView() ?
Thanks 🙏🙏
Beta Was this translation helpful? Give feedback.
All reactions