1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-14 00:24:28 +01:00

Fix colorazione agente di default

This commit is contained in:
MatteoPistorello 2022-05-18 16:18:04 +02:00
parent c3001e4346
commit 0847751058

View File

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