Add stack trace to SQL errors

Reload object on modify error to display the real unmodified object
This commit is contained in:
Eric Espie
2025-07-07 13:44:45 +02:00
parent 471422b274
commit 031305cfbf
2 changed files with 3 additions and 2 deletions

View File

@@ -664,6 +664,7 @@ JS;
$aResult['data'] = ['error_message' => $e->getHtmlMessage()];
} else {
$oPage->AddHeaderMessage($e->getHtmlMessage(), 'message_error');
$oObj->Reload();
$oObj->DisplayModifyForm($oPage,
array('wizard_container' => true)); // wizard_container: display the wizard border and the title
}