tbrehm
2007-05-23 22e7f9de84d631f97588c9acaf1f05c860eda088
interface/lib/classes/tform_actions.inc.php
@@ -97,6 +97,8 @@
        function onUpdate() {
                global $app, $conf;
            $this->onBeforeUpdate();
                $ext_where = '';
                $sql = $app->tform->getSQL($this->dataRecord,$app->tform->getCurrentTab(),'UPDATE',$this->id,$ext_where);
                if($app->tform->errorMessage == '') {
@@ -154,6 +156,8 @@
        function onInsert() {
                global $app, $conf;
            $this->onBeforeInsert();
                $ext_where = '';
                $sql = $app->tform->getSQL($this->dataRecord,$app->tform->getCurrentTab(),'INSERT',$this->id,$ext_where);
                if($app->tform->errorMessage == '') {
@@ -197,6 +201,14 @@
                } else {
                        $this->onError();
                }
        }
        function onBeforeUpdate() {
            global $app, $conf;
        }
        function onBeforeInsert() {
            global $app, $conf;
        }
                function onAfterUpdate() {
@@ -480,7 +492,8 @@
                        }
                        if(!$record = $app->db->queryOneRecord($sql)) $app->error($app->lng('error_no_view_permission'));
                } else {
                        $record = $app->tform->encode($_POST,$this->active_tab);
                        // $record = $app->tform->encode($_POST,$this->active_tab);
                  $record = $app->tform->encode($this->dataRecord,$this->active_tab);
                }
                $this->dataRecord = $record;