[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaCommandArgumentTable: show arguments sorted

git at icinga.org git at icinga.org
Fri Aug 26 09:04:33 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 7323f733279a44e0079073bef9a13c231414d8bc
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=7323f733279a44e0079073bef9a13c231414d8bc

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Aug 25 20:49:56 2016 +0000

IcingaCommandArgumentTable: show arguments sorted

---

 application/tables/IcingaCommandArgumentTable.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/application/tables/IcingaCommandArgumentTable.php b/application/tables/IcingaCommandArgumentTable.php
index ed2d66f..a802630 100644
--- a/application/tables/IcingaCommandArgumentTable.php
+++ b/application/tables/IcingaCommandArgumentTable.php
@@ -19,6 +19,7 @@ class IcingaCommandArgumentTable extends QuickTable
         if ($this->connection === null) {
             $this->setConnection($command->getConnection());
         }
+
         return $this;
     }
 
@@ -63,7 +64,7 @@ class IcingaCommandArgumentTable extends QuickTable
             array('c' => 'icinga_command'),
             'ca.command_id = c.id',
             array()
-        );
+        )->order('ca.sort_order')->order('ca.argument_name');
 
         return $query;
     }



More information about the icinga-checkins mailing list