app/Controller/ProdutoController.php 2 locations
|
@@ 44-47 (lines=4) @@
|
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
| 45 |
|
{ |
| 46 |
|
$conditions['conditions']['Produto.nome LIKE '] = '%' . $_GET['sSearch'] . '%'; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
$produtos = $this->Produto->find('all', $conditions); |
| 50 |
|
|
|
@@ 141-144 (lines=4) @@
|
| 138 |
|
} |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
| 142 |
|
{ |
| 143 |
|
$conditions['conditions']['Produto.nome LIKE '] = '%' . $_GET['sSearch'] . '%'; |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
$produtos = $this->Produto->query($sql); |
| 147 |
|
|
app/Controller/VendaController.php 1 location
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
| 105 |
|
{ |
| 106 |
|
$conditions['conditions']['Venda.id LIKE '] = '%' . $_GET['sSearch'] . '%'; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
$vendas = $this->Venda->find('all', $conditions); |
| 110 |
|
|