Skip to content

Commit 52bc49c

Browse files
committed
Fixed: FS#918 - Cron file not create/update on cron insert but only on cron update
1 parent 91609af commit 52bc49c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function onInsert() {
195195
}
196196

197197
$this->onAfterInsert();
198-
198+
199199
// Write data history (sys_datalog)
200200
if($app->tform->formDef['db_history'] == 'yes') {
201201
$new_data_record = $app->tform->getDataRecord($this->id);

interface/web/sites/cron_edit.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ function onInsertSave($sql) {
168168
if($has_error == true) {
169169
parent::onError();
170170
exit;
171-
}
172-
else parent::onInsertSave($sql);
171+
} else {
172+
return parent::onInsertSave($sql);
173+
}
173174
}
174175

175176
function onAfterInsert() {

0 commit comments

Comments
 (0)