diff --git a/Controller/NewServicioAT.php b/Controller/NewServicioAT.php index c08bde4..6cece25 100644 --- a/Controller/NewServicioAT.php +++ b/Controller/NewServicioAT.php @@ -79,10 +79,10 @@ public function getModalCustomers(): array $cliente = new Cliente(); $where = [Where::isNull('fechabaja')]; if ($this->permissions->onlyOwnerData && !$showAll) { - $where[] = Where::column('codagente', $this->user->codagente); + $where[] = Where::eq('codagente', $this->user->codagente); $where[] = Where::isNotNull('codagente'); } - $clientes = $cliente->all($where, ['LOWER(nombre)' => 'ASC']); + $clientes = $cliente->all($where, ['LOWER(nombre)' => 'ASC'], 0, 50); // guardamos en caché Cache::set($cacheKey, $clientes);