[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: WIP: SyncRule: Load properties in ASC order

git at icinga.org git at icinga.org
Fri Jul 22 13:55:48 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 1d6289578ce3ae70df7e9f804e0f5b12cc366a70
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=1d6289578ce3ae70df7e9f804e0f5b12cc366a70

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Tue Jul 19 17:03:06 2016 +0200

WIP: SyncRule: Load properties in ASC order

(Needed when setting template, needs to be set before assignments)

---

 library/Director/Objects/SyncRule.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Objects/SyncRule.php b/library/Director/Objects/SyncRule.php
index ca315f1..6566155 100644
--- a/library/Director/Objects/SyncRule.php
+++ b/library/Director/Objects/SyncRule.php
@@ -303,7 +303,7 @@ class SyncRule extends DbObject
             $db->select()
                ->from('sync_property')
                ->where('rule_id = ?', $this->id)
-               ->order('priority DESC')
+               ->order('priority ASC') // TODO: WTF?
         );
 
         return $this->syncProperties;



More information about the icinga-checkins mailing list