forked from extern/egroupware
fixed not working display of validation errors and show them in red
This commit is contained in:
parent
86577fa44e
commit
2bbee5b373
@ -172,16 +172,11 @@ class uisettings
|
||||
|
||||
if (is_array($error)) $error = false; // process_array returns the prefs-array on success
|
||||
|
||||
if(!$this->is_admin() || $error)
|
||||
{
|
||||
$GLOBALS['egw']->redirect_link($this->bo->session_data['referer']);
|
||||
}
|
||||
|
||||
if($GLOBALS['type'] == 'user' && $_GET['appname'] == 'preferences' && $user['show_help'] != '')
|
||||
{
|
||||
$this->show_help = $user['show_help']; // use it, if admin changes his help-prefs
|
||||
}
|
||||
if($_POST['save'])
|
||||
if($_POST['save'] && !$error)
|
||||
{
|
||||
$GLOBALS['egw']->redirect_link($this->bo->session_data['referer']);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<center><b>{messages}</b></center>
|
||||
<center style="color: red; font-style: italic">{messages}</center>
|
||||
|
||||
<!-- BEGIN form -->
|
||||
<form method="POST" action="{action_url}">
|
||||
|
Loading…
Reference in New Issue
Block a user