Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

or_where not functional #19

Open
marneu opened this issue Mar 28, 2021 · 0 comments
Open

or_where not functional #19

marneu opened this issue Mar 28, 2021 · 0 comments

Comments

@marneu
Copy link

marneu commented Mar 28, 2021

Expected behaviour:

or_where does an OR where clause

Actual Behaviour:
Error

Fix:
Model: GroceryCrudModel.php

152c152
<     	$this->builder->or_where( $key, $value, $escape);
---
>     	$this->builder->orWhere( $key, $value, $escape);

Lib: GroceryCrud.php

3382a3383
>     protected $or_where				= array();
4369a4371,4385
>      * Filter datagrid with an extra where statement.
>      *
>      * @param string $field
>      * @param string|null $value
>      * @param bool $escape
>      * @return $this
>      */
>     public function or_where(string $field, $value = null, $escape = true)
>     {
>         $this->or_where[] = array($field, $value, $escape);
> 
>         return $this;
>     }
> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant