Atualizando financial_categories_datagrid.php
This commit is contained in:
parent
48228c4639
commit
abf77570f9
1 changed files with 2 additions and 6 deletions
8
vendor/model/FinancialCategories.class.php
vendored
8
vendor/model/FinancialCategories.class.php
vendored
|
|
@ -140,7 +140,7 @@ class FinancialCategories
|
|||
/** Verifica se alguma descrição foi informada */
|
||||
if($this->description){
|
||||
|
||||
$this->sql .= ' and description like (:description) ';
|
||||
$this->sql .= ' and description like concat(\'%\', :description, \'%\') ';
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -150,8 +150,6 @@ class FinancialCategories
|
|||
/** Verifica se alguma descrição foi informada */
|
||||
if($this->description){
|
||||
|
||||
$this->description = '%'.$this->description.'%';
|
||||
|
||||
/** Preencho os parâmetros do SQL */
|
||||
$this->stmt->bindParam(':description', $this->description);
|
||||
|
||||
|
|
@ -180,7 +178,7 @@ class FinancialCategories
|
|||
/** Verifica se alguma descrição foi informada */
|
||||
if($this->description){
|
||||
|
||||
$this->sql .= ' and description like (:description) ';
|
||||
$this->sql .= ' and description like concat(\'%\', :description, \'%\') ';
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -190,8 +188,6 @@ class FinancialCategories
|
|||
/** Verifica se alguma descrição foi informada */
|
||||
if($this->description){
|
||||
|
||||
$this->description = '%'.$this->description.'%';
|
||||
|
||||
/** Preencho os parâmetros do SQL */
|
||||
$this->stmt->bindParam(':description', $this->description);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue