FIX: Find Pago

This commit is contained in:
Juan Pablo Vial
2024-02-07 18:35:28 -03:00
parent ad3285efd9
commit d8b8787be9
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<form id="search_form" class="ui form" action="{{$urls->base}}/search" method="post">
<div class="field">
<div class="ui fluid input" data-tooltip="Para buscar frases se deben encerrar entre comillas. ej, 'portal la viña' o &quot;portal la viña&quot;" data-position="bottom left">
<div class="ui fluid input" data-tooltip="Para buscar frases se deben encerrar entre comillas. ej, 'portal la viña' o &quot;portal la viña&quot;" data-position="top right">
<input type="text" name="query" />
</div>
</div>

View File

@ -142,7 +142,7 @@ class Search
}
protected function findPago(string $query): array
{
if ($query != 0) {
if ((int) $query === 0) {
return [];
}
$methods = [
@ -156,6 +156,7 @@ class Search
$pagos = [];
try {
$pagos = $this->pagoRepository->fetchByValue((int) $valor);
error_log(var_export($pagos,true).PHP_EOL,3,'/logs/debug');
} catch (EmptyResult) {}
$results = [];
foreach ($methods as $method) {