From 32267f02c81d14b7d20e6f585db3069d824a0e51 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Apr 2020 14:32:46 -0600 Subject: [PATCH] * Timesheet: Fix update via import without category or status cleared original --- timesheet/inc/class.timesheet_egw_record.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/timesheet/inc/class.timesheet_egw_record.inc.php b/timesheet/inc/class.timesheet_egw_record.inc.php index cb786b26a2..f0e928f6f3 100644 --- a/timesheet/inc/class.timesheet_egw_record.inc.php +++ b/timesheet/inc/class.timesheet_egw_record.inc.php @@ -72,6 +72,10 @@ class timesheet_egw_record implements importexport_iface_egw_record $this->timesheetentry[$_attribute_name] = $data; } + public function __unset($_attribute_name) + { + unset($this->timesheetentry[$_attribute_name]); + } /** * converts this object to array. * @abstract We need such a function cause PHP5