Skip to content

Commit 9517d44

Browse files
author
Marius Cramer
committed
Added on_before_update event raiser
1 parent a03a840 commit 9517d44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function onUpdate() {
106106
global $app, $conf;
107107

108108
$this->onBeforeUpdate();
109+
$app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_update', array('page_form'=>$this, 'sql'=>$sql));
109110

110111
$ext_where = '';
111112
$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
@@ -192,6 +193,7 @@ function onInsert() {
192193
global $app, $conf;
193194

194195
$this->onBeforeInsert();
196+
$app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_insert', array('page_form'=>$this, 'sql'=>$sql));
195197

196198
$ext_where = '';
197199
$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'INSERT', $this->id, $ext_where);

0 commit comments

Comments
 (0)