Change error-message from "Error: saving the entry" to "Permission denied" as it's far more likely than DB failed to store the entry

This commit is contained in:
ralf 2024-09-20 11:36:52 +02:00
parent 308f371b95
commit bb430d909b

View File

@ -1921,7 +1921,7 @@ class infolog_ui
$active_tab = $content['tabs'];
if (!($info_id = $this->bo->write($content, true, true, true, $content['no_notifications'])))
{
$content['msg'] = $info_id !== 0 || !$content['info_id'] ? lang('Error: saving the entry') :
$content['msg'] = $info_id !== 0 || !$content['info_id'] ? lang('Permission denied!') :
lang('Error: the entry has been updated since you opened it for editing!').'<br />'.
lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.','<a href="'.
htmlspecialchars(Egw::link('/index.php',array(