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

Non funzionavano gli ordinamenti per campi contenenti spazi

This commit is contained in:
Fabio Lovato 2018-03-08 11:53:26 +01:00
parent c7959957a6
commit 537c4c86db

View File

@ -79,8 +79,14 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom
if ($cont > 1) {
unset($pieces[$cont - 1]);
}
$order_by = $total['order_by'][$order['column']];
if( strstr( $order_by, ' ' ) ){
$order_by = '`'.$order_by.'`';
}
$module_query = implode('ORDER', $pieces).' ORDER BY '.$total['order_by'][$order['column']].' '.$order['dir'];
$module_query = implode('ORDER', $pieces).' ORDER BY '.$order_by.' '.$order['dir'];
}
// Calcolo di eventuali somme