Skip to content

Commit 61f7382

Browse files
author
Till Brehm
committed
- Changed tform_actions.inc.php to always provide oldDataRecord array for updates even when dbhistory = off.
1 parent 1e67c17 commit 61f7382

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ function onUpdate() {
111111
$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
112112
if($app->tform->errorMessage == '') {
113113

114-
if($app->tform->formDef['db_history'] == 'yes') {
115-
$this->oldDataRecord = $app->tform->getDataRecord($this->id);
116-
}
114+
$this->oldDataRecord = $app->tform->getDataRecord($this->id);
117115

118116
// Save record in database
119117
$this->onUpdateSave($sql);

0 commit comments

Comments
 (0)