[icinga-checkins] icinga.org: icinga-web/jmosshammer/default2: * Added position field for categories

git at icinga.org git at icinga.org
Fri Jul 23 11:46:36 CEST 2010


Module: icinga-web
Branch: jmosshammer/default2
Commit: afe021f707581571bf5d4c5a87e710decce1be9d
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=afe021f707581571bf5d4c5a87e710decce1be9d

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Fri Jul 23 11:46:23 2010 +0200

* Added position field for categories

---

 app/modules/Cronks/config/module.xml               |    6 +++++-
 .../Cronks/models/System/CronkDataModel.class.php  |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/config/module.xml b/app/modules/Cronks/config/module.xml
index 6931637..a9a3d9f 100755
--- a/app/modules/Cronks/config/module.xml
+++ b/app/modules/Cronks/config/module.xml
@@ -30,12 +30,13 @@
 					<ae:parameter name="core">
 						<ae:parameter name="title">Core components</ae:parameter>
 						<ae:parameter name="visible">false</ae:parameter>
+
 					</ae:parameter>
 					
 					<ae:parameter name="data">
 						<ae:parameter name="title">Data</ae:parameter>
 						<ae:parameter name="visible">true</ae:parameter>
-						
+						<ae:parameter name="position">1</ae:parameter>						
 						<!-- Activate first! -->
 						<ae:parameter name="active">true</ae:parameter>
 					</ae:parameter>
@@ -43,7 +44,9 @@
 					<ae:parameter name="misc">
 						<ae:parameter name="title">Misc</ae:parameter>
 						<ae:parameter name="visible">true</ae:parameter>
+						<ae:parameter name="position">2</ae:parameter>
 					</ae:parameter>
+			
 				</setting>
 
 				<!--
@@ -55,6 +58,7 @@
 					href="cronks.xml#xpointer(setting/node())" />
 				</setting>
 				
+		
 			</settings>
 		</module>
 		
diff --git a/app/modules/Cronks/models/System/CronkDataModel.class.php b/app/modules/Cronks/models/System/CronkDataModel.class.php
index 184b001..b13f5e9 100755
--- a/app/modules/Cronks/models/System/CronkDataModel.class.php
+++ b/app/modules/Cronks/models/System/CronkDataModel.class.php
@@ -84,7 +84,7 @@ class Cronks_System_CronkDataModel extends CronksBaseModel {
 		$this->cronks = $this->filterData(AgaviConfig::get(self::CONFIG_CRONKS));
 		
 		if ($this->sort == true) {
-			$this->sortBySubcol($this->categories, array('title' => SORT_ASC));
+			$this->sortBySubcol($this->categories, array('position' => SORT_ASC));
 			$this->sortBySubcol($this->cronks, array('name' => SORT_ASC));
 		}
 	}





More information about the icinga-checkins mailing list