You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my code have status include 0, the input filter don't work fine.
`
/**
* Add a binding to the query.
*
* @param string $value
* @param Model|null $model
*/
public function addBinding($value, Model $model)
{
if (empty($value)) { // when value is string "0" will not work fine
return;
}
if ($this->type == 'like') {
$model->where($this->getColumnName(), 'like', "%{$value}%");
return;
}
if (in_array($this->type, ['date', 'time'])) {
$method = 'where'.ucfirst($this->type);
$model->{$method}($this->getColumnName(), $value);
return;
}
$model->where($this->getColumnName(), $value);
}
`
so and now , fix it to
`
/**
* Add a binding to the query.
*
* @param string $value
* @param Model|null $model
*/
public function addBinding($value, Model $model)
{
master
Description:
When my code have status include 0, the input filter don't work fine.
`
`
so and now , fix it to
`
/**
* Add a binding to the query.
*
* @param string $value
* @param Model|null $model
*/
public function addBinding($value, Model $model)
{
`
pls check it, thank you!
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: