1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
- corretto dataload per ricarca campi icon_
- corretto campo select vettori in fatture
This commit is contained in:
Luca
2017-11-14 19:14:41 +01:00
parent 531de41002
commit 181e18d2fc
2 changed files with 8 additions and 2 deletions

View File

@ -52,6 +52,12 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom
$search_filters[] = str_replace('|search|', prepare('%'.$piece.'%'), $total['search_inside'][$i]);
}
} else {
//per le icone cerco per il campo icon_title
if (preg_match('/^icon_(.+?)$/', $total['search_inside'][$i], $m)) {
$total['search_inside'][$i] = "icon_title_".$m[1];
}
$search_filters[] = '`'.$total['search_inside'][$i].'` LIKE '.prepare('%'.trim($columns[$i]['search']['value'].'%'));
}
}
@ -177,7 +183,7 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom
// Icona
elseif (preg_match('/^icon_(.+?)$/', trim($field), $m)) {
$value = '<i class="'.$r[$field].'"></i> <small>'.$r['icon_title_'.$m[1]].'</small>';
$value = '<i class="'.$r[$field].'" title="'.$r['icon_title_'.$m[1]].'" ></i> <small>'.$r['icon_title_'.$m[1]].'</small>';
}
// Colore del testo