]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix redundant loading users portlet
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 21 Nov 2017 19:32:09 +0000 (20:32 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 10:59:25 +0000 (11:59 +0100)
gui/baculum/protected/Web/Portlets/Users.php
gui/baculum/protected/Web/Portlets/Users.tpl

index fca312f78b00afe9fb0b81daa525599e0cda86b4..788491a667bc829a53cdeb5618fe6bad11a79c8d 100644 (file)
@@ -28,10 +28,9 @@ class Users extends Portlets {
 
        public $web_config;
 
-       public function onInit($param) {
-               parent::onInit($param);
+       public function __construct() {
+               parent::__construct();
                $this->web_config = $this->getModule('web_config')->getConfig();
-               $this->setUsers();
        }
 
        public function setUsers() {
index 139b257aeb82131a2bcd6ca421cb97badde10823..821a460a3e1f404c9fb331dd12ebd35b085c508a 100644 (file)
@@ -8,7 +8,7 @@
                <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_err.png" alt="<%[ Close ]%>" title="<%[ Close ]%>" />
        </a></p>
 </div>
-<com:TActiveRepeater ID="UsersList">
+<com:TActiveRepeater ID="UsersList" OnLoad="setUsers" ActiveControl.EnableUpdate="false">
        <prop:HeaderTemplate>
        <table id="users_list" class="window-section-detail-smallrow">
                <tr>