diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php index da12ac83dcaab9d32e99dda5361e59c68209873c..150db7352844ae8f4020acbf0cd7f9f9de91f798 100644 --- a/interface/lib/classes/tform_actions.inc.php +++ b/interface/lib/classes/tform_actions.inc.php @@ -110,6 +110,8 @@ class tform_actions { $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_update', $this); $ext_where = ''; + $tmp_old_record = $app->tform->getDataRecord($this->id); + if($tmp_old_record && is_array($tmp_old_record)) $this->dataRecord = array_merge($tmp_old_record, $this->dataRecord); $sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where); if($app->tform->errorMessage == '') {