Fix colorazione agente di default

This commit is contained in:
MatteoPistorello 2022-05-18 16:18:04 +02:00
parent c3001e4346
commit 0847751058
1 changed files with 2 additions and 2 deletions

View File

@ -131,10 +131,10 @@ switch ($resource) {
$idagente_default = 0; $idagente_default = 0;
} }
$ids = array_column($results, 'idanagrafica'); $ids = array_column($results['results'], 'id');
$pos = array_search($idagente_default, $ids); $pos = array_search($idagente_default, $ids);
if ($pos !== false) { if ($pos !== false) {
$results[$pos]['_bgcolor_'] = '#ff0'; $results['results'][$pos]['_bgcolor_'] = '#ff0';
} }
break; break;