mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
merging fix from trunk: validation error instead of using the blur-title
This commit is contained in:
parent
e7b8845f71
commit
f241911ce7
@ -140,10 +140,15 @@ class uitimesheet extends botimesheet
|
|||||||
{
|
{
|
||||||
$this->data['ts_title'] = $this->data['ts_project'];
|
$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'])
|
if (!$this->data['ts_title'])
|
||||||
{
|
{
|
||||||
$etpl->set_validation_error('ts_title',lang('Field must not be empty !!!'));
|
$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 ($etpl->validation_errors()) break; // the user need to fix the error, before we can save the entry
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user