return false;
}
+ function beforeDelete($dependants_array, $roo) {
+ if ($this->delivered()) {
+ $roo->jerr("you can not delete a record of a successfull delivery");
+ }
+ }
function act_start($set = false)
//DB_DAtaObject::DebugLevel(1);
// then we can build a join..
$d = DB_DataObject::Factory($q['ontable']);
- $d->autoJoin();
+ $ji = $d->autoJoin();
+ //print_R($jinfo);
+ // get cols
+
+
//$this->selectAdd($d->_query['data_select']); -- this will cause the same dataIndex...
$this->_join .= "
LEFT JOIN {$d->tableName()} ON {$this->tableName()}.onid = {$d->tableName()}.id
switch ($q['query']['status']) {
case 'SUCCESS';
- $this->whereAdd("msg_id != ''");
+ $this->whereAdd("msgid != ''");
break;
case 'FAILED';
- $this->whereAdd('msg_id = '' AND event_id > 0 ');
+ $this->whereAdd("msgid = '' AND event_id > 0 AND act_when < NOW()");
break;
case 'PENDING';