Commit f6286516 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5980-management-should-be-a-bit-more-flexible' into '1.4-dev'

Resolve "Management should be a bit more flexible"

See merge request fusiondirectory/fd!567
parents a8e8c134 f9d71bdd
......@@ -59,7 +59,7 @@ class managementListing
*/
function __construct (management $parent, bool $baseMode = TRUE, bool $multiSelect = TRUE)
{
global $config, $ui;
global $config;
$this->parent = $parent;
$this->baseMode = $baseMode;
......@@ -68,6 +68,18 @@ class managementListing
// Initialize pid
$this->pid = preg_replace('/[^0-9]/', '', microtime(TRUE));
$this->setUpBaseSelector();
// Move footer information
$this->showFooter = ($config->get_cfg_value('listSummary') == 'TRUE');
$this->reloadColumns();
}
function setUpBaseSelector ()
{
global $config, $ui;
// Set base for filter
if ($this->baseMode) {
$this->base = $ui->getCurrentBase();
......@@ -78,11 +90,6 @@ class managementListing
} else {
$this->base = $config->current['BASE'];
}
// Move footer information
$this->showFooter = ($config->get_cfg_value('listSummary') == 'TRUE');
$this->reloadColumns();
}
function getBaseMode (): bool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment