fixed not working display of validation errors and show them in red

This commit is contained in:
Ralf Becker 2011-11-29 15:44:17 +00:00
parent 86577fa44e
commit 2bbee5b373
2 changed files with 2 additions and 7 deletions

View File

@ -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']);
}

View File

@ -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}">