From: Marcin Haba Date: Fri, 27 Nov 2015 17:52:37 +0000 (+0100) Subject: baculum: Set default elements limit in window to 1000 elements X-Git-Tag: Release-7.4.0~163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=787daf5b3b721d17bf4d7030f69f31747a4cd033;p=bacula%2Fbacula baculum: Set default elements limit in window to 1000 elements --- diff --git a/gui/baculum/protected/Portlets/SlideWindow.php b/gui/baculum/protected/Portlets/SlideWindow.php index 70d936c208..f03546d765 100644 --- a/gui/baculum/protected/Portlets/SlideWindow.php +++ b/gui/baculum/protected/Portlets/SlideWindow.php @@ -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; } }