Update layout.php

sestoner : admin-layout-fix
This commit is contained in:
gtbu 2022-03-11 16:15:24 +01:00
parent a55fbb5bd9
commit e0f0b241ae

View file

@ -1110,7 +1110,13 @@ class Layout extends \gp\admin\Addon\Install{
$success = false;
}
$this->SaveLayouts();
if (!empty($_POST['default'])){
$this->SaveLayouts(false);
$this->curr_layout = $layout_id;
$this->MakeDefault();
}else{
$this->SaveLayouts();
}
}