Skip to content

Commit

Permalink
Increase default treeview items per page (#1748)
Browse files Browse the repository at this point in the history
Increase the default limit for items per page in treeview to 8000
  • Loading branch information
anvit committed Feb 16, 2024
1 parent 6ef18d0 commit 8270436
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public function execute($request)
QubitAcl::forwardUnauthorized();
}

$this->itemsPerPage = sfConfig::get('app_treeview_full_items_per_page', 50);
$this->itemsPerPage = sfConfig::get('app_treeview_full_items_per_page', 8000);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected function formatResultData($result, $options)
protected function getPageLimit($options)
{
// Get default limit from config
$limit = sfConfig::get('app_treeview_full_items_per_page', 50);
$limit = sfConfig::get('app_treeview_full_items_per_page', 8000);

if (isset($options['limit']) && intval($options['limit']) > 0) {
$limit = intval($options['limit']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function execute($request)
$this->treeviewType = sfConfig::get('app_treeview_type__source', 'sidebar');
if ('sidebar' != $this->treeviewType) {
$this->collapsible = sfConfig::get('app_treeview_allow_full_width_collapse');
$this->itemsPerPage = sfConfig::get('app_treeview_full_items_per_page', 50);
$this->itemsPerPage = sfConfig::get('app_treeview_full_items_per_page', 8000);

return sfView::SUCCESS;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function addField($name)
case 'fullItemsPerPage':
$this->fullItemsPerPageSetting = QubitSetting::getByName('treeview_full_items_per_page');

$default = 50;
$default = 8000;
if (isset($this->fullItemsPerPageSetting)) {
$default = $this->fullItemsPerPageSetting->getValue(['sourceCulture' => true]);
}
Expand Down

0 comments on commit 8270436

Please sign in to comment.