From: Florian G. <re...@us...> - 2008-07-04 00:02:28
|
Update of /cvsroot/perfparse/_perfparse-phpgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28283/phpgui Modified Files: utils.php Log Message: More sorting predefaults Index: utils.php =================================================================== RCS file: /cvsroot/perfparse/_perfparse-phpgui/utils.php,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** utils.php 3 Jul 2008 23:50:43 -0000 1.50 --- utils.php 4 Jul 2008 00:02:34 -0000 1.51 *************** *** 351,354 **** --- 351,363 ---- $query.='m.last_perfdata_bin=b.id '; $query.='order by '.$sorts[0].' '.$sorts[1]; + if($sorts[0]!="host_name") { + $query.=',host_name asc'; + } + if($sorts[0]!="service_description") { + $query.=',service_description asc'; + } + if($sorts[0]!="metric") { + $query.=',metric asc'; + } // do the query *************** *** 431,436 **** $query.=' order by '.$sorts[0].' '.$sorts[1]; // RFE from Christian Vieser: Sort service description if($sorts[0]!="service_description") { ! $query.=', service_description asc'; } --- 440,448 ---- $query.=' order by '.$sorts[0].' '.$sorts[1]; // RFE from Christian Vieser: Sort service description + if($sorts[0]!="host_name") { + $query.=',host_name asc'; + } if($sorts[0]!="service_description") { ! $query.=',service_description asc'; } |