Atualizando financial_categories_datagrid.php
This commit is contained in:
parent
c18e89e329
commit
24c46fc962
1 changed files with 6 additions and 2 deletions
8
vendor/model/FinancialCategories.class.php
vendored
8
vendor/model/FinancialCategories.class.php
vendored
|
|
@ -150,8 +150,10 @@ 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.'%');
|
||||
$this->stmt->bindParam(':description', $this->description);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -188,8 +190,10 @@ 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.'%');
|
||||
$this->stmt->bindParam(':description', $this->description);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue