mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
"fixing the fix: if no title was entered, you got a validation error instead of the blur-title"
This commit is contained in:
parent
d56c51d71d
commit
81cb29ce8b
@ -140,11 +140,16 @@ class uitimesheet extends botimesheet
|
||||
{
|
||||
$this->data['ts_title'] = $this->data['ts_project'];
|
||||
}
|
||||
if (!$this->data['ts_title']) $this->data['ts_title'] = $this->data['ts_title_blur'];
|
||||
if (!$this->data['ts_title'])
|
||||
{
|
||||
$this->data['ts_title'] = $this->data['ts_title_blur'] ?
|
||||
$this->data['ts_title_blur'] : $this->data['ts_project_blur'];
|
||||
|
||||
if (!$this->data['ts_title'])
|
||||
{
|
||||
$etpl->set_validation_error('ts_title',lang('Field must not be empty !!!'));
|
||||
}
|
||||
}
|
||||
if ($etpl->validation_errors()) break; // the user need to fix the error, before we can save the entry
|
||||
|
||||
if ($this->save() != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user