Marius Cramer
2015-05-07 9c79079e9cd5c53b61209bed6754ac6c06bbbda2
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);
@@ -314,6 +312,7 @@
         //$this->dataRecord = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id);
         $this->dataRecord = $app->tform->getDataRecord($this->id);
         $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_check_delete', $this);
         $this->onBeforeDelete();
         $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_delete', $this);