Marius Cramer
2014-05-06 9517d44c835ea2911ccb723e8c6482bc1ac4ac35
Added on_before_update event raiser
1 files modified
2 ■■■■■ changed files
interface/lib/classes/tform_actions.inc.php 2 ●●●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -106,6 +106,7 @@
        global $app, $conf;
        $this->onBeforeUpdate();
        $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_update', array('page_form'=>$this, 'sql'=>$sql));
        $ext_where = '';
        $sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'UPDATE', $this->id, $ext_where);
@@ -192,6 +193,7 @@
        global $app, $conf;
        $this->onBeforeInsert();
        $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_insert', array('page_form'=>$this, 'sql'=>$sql));
        $ext_where = '';
        $sql = $app->tform->getSQL($this->dataRecord, $app->tform->getCurrentTab(), 'INSERT', $this->id, $ext_where);