|
@@ -16,7 +16,7 @@ class MermaController extends AuthController
|
|
|
$id = trim($this->req->get("id", ""));
|
|
|
$idObra = trim($this->req->get("idObra", ""));
|
|
|
$idPartida = trim($this->req->get("idPartida", ""));
|
|
|
- $buscar = trim($this->req->get("q", ""));
|
|
|
+ $buscar = trim($this->req->get("buscar", ""));
|
|
|
|
|
|
$query = $this->queryInicial;
|
|
|
|
|
@@ -34,7 +34,7 @@ class MermaController extends AuthController
|
|
|
}
|
|
|
|
|
|
if($buscar !==""){
|
|
|
- $query->andWhere(["nombre"=>$buscar]);
|
|
|
+ $query->andWhere(["producto"=>$buscar]);
|
|
|
}
|
|
|
|
|
|
return new Respuesta($query, $this->limite, $this->pagina, $this->ordenar);
|