Skip to content
Snippets Groups Projects
Commit 61f73820 authored by Till Brehm's avatar Till Brehm
Browse files

- 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
No related branches found
No related tags found
1 merge request!136Stable 3.0.5.4p5
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment