tbrehm
2009-10-05 52bc49c9551feff226b929c224451698fd8a6c02
Fixed: FS#918 - Cron file not create/update on cron insert but only on cron update 
2 files modified
7 ■■■■■ changed files
interface/lib/classes/tform_actions.inc.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/cron_edit.php 5 ●●●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -195,7 +195,7 @@
                        }
                        $this->onAfterInsert();
                        // Write data history (sys_datalog)
                        if($app->tform->formDef['db_history'] == 'yes') {
                            $new_data_record = $app->tform->getDataRecord($this->id);
interface/web/sites/cron_edit.php
@@ -168,8 +168,9 @@
        if($has_error == true) {
            parent::onError();
            exit;
        }
        else parent::onInsertSave($sql);
        } else {
            return parent::onInsertSave($sql);
        }
    }
    
    function onAfterInsert() {