From cfcb1efd8fc3b55cf8e6a22b7e25f1d40581d907 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 31 Aug 2019 11:07:06 +0200 Subject: [PATCH] show tabs when save error occured --- lam/lib/modules.inc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 8eb85a74..ddc1d4e0 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -866,7 +866,6 @@ class accountContainer { $oldPage = $this->current_page; $oldSubpage = $this->subpage; $result = array(); - $stopProcessing = false; // when set to true, no module options are displayed $errorsOccured = false; $typeObject = $this->type->getBaseType(); $profileLoaded = $this->loadProfileIfRequested(); @@ -954,7 +953,6 @@ class accountContainer { } if (!$saveOk) { $result = $saveMessages; - $stopProcessing = true; } else { $this->printSuccessPage($saveMessages); @@ -1007,7 +1005,7 @@ class accountContainer { $this->titleBarTitle = $typeObject->getTitleBarTitle($this); $this->titleBarSubtitle = $typeObject->getTitleBarSubtitle($this); // prints a module content page - $this->printModuleContent($result, $stopProcessing); + $this->printModuleContent($result); if (!$errorsOccured && ($oldPage == $this->current_page) && ($oldSubpage == $this->subpage) && isset($_POST['scrollPositionTop']) && isset($_POST['scrollPositionLeft'])) { // scroll to last position @@ -1025,9 +1023,8 @@ class accountContainer { * Prints the content part provided by the current module. * * @param array $result list of messages - * @param boolean $stopProcessing true if page should end after displaying the messages */ - private function printModuleContent($result, $stopProcessing) { + private function printModuleContent($result) { $tabindex = 1; $this->printPageHeader(); $this->printPasswordPromt(); @@ -1036,9 +1033,6 @@ class accountContainer { for ($i=0; $i'; echo "type->getScope()."-bright\" border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n"; @@ -1799,7 +1793,7 @@ class accountContainer { * * @return array list of status messages */ - function save_account() { + private function save_account() { if (!checkIfWriteAccessIsAllowed($this->type->getId())) { die(); }