From 4ddfc607bc89ec789f1f286406f75b54f83d579c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 21 Sep 2011 15:07:27 +0000 Subject: [PATCH] remove title-blur for same behavior after apply, as for opening the saved entry again --- timesheet/inc/class.timesheet_ui.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 58f4d4033b..948638e32d 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -183,6 +183,14 @@ class timesheet_ui extends timesheet_bo { $etpl->set_validation_error('ts_title',lang('Field must not be empty !!!')); } + else + { + // remove title-blur for same behavior after apply, as for opening the saved entry again + unset($this->data['ts_title_blur']); + unset($content['ts_title_blur']); + unset($this->data['ts_project_blur']); + unset($content['ts_project_blur']); + } } if ($etpl->validation_errors()) break; // the user need to fix the error, before we can save the entry