[icinga-checkins] icinga.org: icinga-web/master: * Fixed sorting of services in search host-result

git at icinga.org git at icinga.org
Wed Apr 11 16:07:18 CEST 2012


Module: icinga-web
Branch: master
Commit: 9f078049443c203a76639e69c75501d838f2fb94
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=9f078049443c203a76639e69c75501d838f2fb94

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Wed Apr 11 16:04:23 2012 +0200

* Fixed sorting of services in search host-result

---

 app/modules/Cronks/lib/js/search/SearchHandler.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/search/SearchHandler.js b/app/modules/Cronks/lib/js/search/SearchHandler.js
index b37c8e6..264f04d 100644
--- a/app/modules/Cronks/lib/js/search/SearchHandler.js
+++ b/app/modules/Cronks/lib/js/search/SearchHandler.js
@@ -227,12 +227,14 @@ Icinga.Cronks.search.SearchHandler = (new (Ext.extend(Ext.util.Observable, {
             case 'host':
                 filter['f[host_object_id-value]'] = re.data.object_id;
                 filter['f[host_object_id-operator]'] = 50;
+                filter['additional_sort_field'] = 'service_name';
                 params['template'] = 'icinga-service-template';
             break;
             
             case 'service':
                 filter['f[service_object_id-value]'] = re.data.object_id;
                 filter['f[service_object_id-operator]'] = 50;
+                
                 params['template'] = 'icinga-service-template';
             break;
             
@@ -268,4 +270,4 @@ Icinga.Cronks.search.SearchHandler = (new (Ext.extend(Ext.util.Observable, {
         return true;
     }
 	
-})));
\ No newline at end of file
+})));





More information about the icinga-checkins mailing list