]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Set default elements limit in window to 1000 elements
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 27 Nov 2015 17:52:37 +0000 (18:52 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Fri, 27 Nov 2015 17:52:37 +0000 (18:52 +0100)
gui/baculum/protected/Portlets/SlideWindow.php

index 70d936c208ffd719acd2f7ebdce80127abcd5a02..f03546d76559b780463ce368be33f7efe61f133a 100644 (file)
@@ -43,6 +43,9 @@ class SlideWindow extends Portlets {
                1000 => '1000 elements',
                'unlimited' => 'unlimited'
        );
+
+       private $defaultElementsLimit = 1000;
+
         public $actions = array(
                'VolumeWindow' => array(
                        'NoAction' => 'select action',
@@ -63,7 +66,7 @@ class SlideWindow extends Portlets {
                parent::onInit($param);
                if(empty($_SESSION['view' . $this->getParent()->ID]) && empty($_SESSION['limit' . $this->getParent()->ID])) {
                        $_SESSION['view' . $this->getParent()->ID] = self::DETAIL_VIEW;
-                       $_SESSION['limit' . $this->getParent()->ID] = $this->elementsLimit['unlimited'];
+                       $_SESSION['limit' . $this->getParent()->ID] = $this->defaultElementsLimit;
                }
        }