// DB_DataObject::debugLevel(1);
if (!empty($q['query']['empty_etype'])) {
- $this->whereAdd("etype = ''");
+ $this->whereAdd("core_enum.etype = ''");
}
// this should be handled by roo... using '!name[0]' ....
function beforeUpdate($old, $request,$roo)
{
if(!empty($request['_merge_id'])){
- print_R($request);exit;
$this->merge($request['_merge_id'], $roo);
}
}
- function merge($to, $roo)
+ function merge($merge_to, $roo)
{
$affects = array();
foreach ($chk->fetchAll() as $c){
$cc = clone ($c);
- $c->{$ka[1]} = $to;
+ $c->{$ka[1]} = $merge_to;
$c->update($cc);
}
}