| | |
| | | $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); |
| | |
| | | //$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); |
| | | |