Till Brehm
2014-10-28 61f73820621d4ea17ecde3c8d6872e6ce8f9eb12
- Changed tform_actions.inc.php to always provide oldDataRecord array for updates even when dbhistory = off.
1 files modified
4 ■■■ changed files
interface/lib/classes/tform_actions.inc.php 4 ●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -111,9 +111,7 @@
        $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);