Commit 61f73820 authored by Till Brehm's avatar Till Brehm

- Changed tform_actions.inc.php to always provide oldDataRecord array for...

- Changed tform_actions.inc.php to always provide oldDataRecord array for updates even when dbhistory = off.
parent 1e67c170
......@@ -111,9 +111,7 @@ class tform_actions {
$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
if($app->tform->errorMessage == '') {
if($app->tform->formDef['db_history'] == 'yes') {
$this->oldDataRecord = $app->tform->getDataRecord($this->id);
}
$this->oldDataRecord = $app->tform->getDataRecord($this->id);
// Save record in database
$this->onUpdateSave($sql);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment