public $trigger_person_id; // int(11)
public $trigger_event_id; // int(11)
public $evtype; // event type (or method to call)fall
+ public $act_start;
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
$roo->jerr("you can not delete a record of a successfull delivery");
}
}
+ function beforeInsert($request,$roo)
+ {
+ if (empty($request['act_when']) && !empty($request['act_start'])) {
+ $this->act_start($request['act_start']);
+ }
+
+ }
+ function beforeUpdate($old, $request,$roo)
+ {
+ if (empty($request['act_when']) && !empty($request['act_start'])) {
+ $this->act_start($request['act_start']);
+ }
+ }
function act_start($set = false)
";
$this->selectAs($d, 'core_notify_%s');
}
- if (isset($q['query']['person_id_name']) ) {
+ if (!empty($q['query']['person_id_name']) ) {
$this->whereAdd( "join_person_id_id.name LIKE '{$this->escape($q['query']['person_id_name'])}%'");
}
}
}
-
+ $this->selectAdd("
+ (SELECT
+ display_name
+ FROM
+ core_enum
+ WHERE
+ etype = 'Core.NotifyType'
+ AND
+ name = core_notify.evtype
+ AND
+ active = 1
+ ) AS evtype_align
+ ");