From 787daf5b3b721d17bf4d7030f69f31747a4cd033 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Fri, 27 Nov 2015 18:52:37 +0100 Subject: [PATCH] baculum: Set default elements limit in window to 1000 elements --- gui/baculum/protected/Portlets/SlideWindow.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.39.5