Skip to content

Commit 666853a

Browse files
author
Marius Cramer
committed
Fixed wrong event parameter
1 parent 9517d44 commit 666853a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +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));
109+
$app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_update', $this);
110110

111111
$ext_where = '';
112112
$sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
@@ -193,7 +193,7 @@ function onInsert() {
193193
global $app, $conf;
194194

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

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

0 commit comments

Comments
 (0)