From e0f0b241aed4c58d762586783641f441d63581e6 Mon Sep 17 00:00:00 2001 From: gtbu Date: Fri, 11 Mar 2022 16:15:24 +0100 Subject: [PATCH] Update layout.php sestoner : admin-layout-fix --- include/admin/Layout.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/admin/Layout.php b/include/admin/Layout.php index fb36eb9..042f911 100644 --- a/include/admin/Layout.php +++ b/include/admin/Layout.php @@ -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(); + } }