Atualizando financial_categories_datagrid.php
This commit is contained in:
parent
5c7e0a61ab
commit
dd56b18d74
1 changed files with 4 additions and 2 deletions
6
vendor/model/FinancialCategories.class.php
vendored
6
vendor/model/FinancialCategories.class.php
vendored
|
|
@ -135,14 +135,16 @@ class FinancialCategories
|
|||
}
|
||||
|
||||
/** Consulta SQL */
|
||||
$this->sql = 'select * from financial_categories '. $this->limit;
|
||||
$this->sql = 'select * from financial_categories ';
|
||||
|
||||
/** Verifica se alguma descrição foi informada */
|
||||
if($this->description){
|
||||
|
||||
$this->sql .= ' where description like concat(\'%\', :description, \'%\') ';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$this->sql .= $this->limit;
|
||||
|
||||
/** Preparo o SQL para execução */
|
||||
$this->stmt = $this->connection->connect()->prepare($this->sql);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue