FIX: Find Pago
This commit is contained in:
@ -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 "portal la viña"" 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 "portal la viña"" data-position="top right">
|
||||
<input type="text" name="query" />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user