if (!empty($q['query']['empty_etype'])) {
$this->whereAdd("core_enum.etype = ''");
}
+
+ if(!empty($q['query']['name'])){
+ $search_name = $this->escape($q['query']['name']);
+ $this->whereAdd("
+ core_enum.name LIKE '%$search_name%'
+ ");
+ }
// this should be handled by roo... using '!name[0]' ....
if(!empty($q['!name'])){
$this->merge($request['_merge_id'], $roo);
}
- $tn = $this->tableName();echo $tn; die;
+ $tn = $this->tableName();
$x = $this->factory($tn);
// check if record exists?
if(isset($request['etype']) && !($old->etype == $request['etype'] && $old->name == $request['name'])){
function merge($merge_to, $roo)
{
$affects = array();
-
+ $tn = $this->tableName();
+ $x = $this->factory($tn);
$all_links = $x->databaseLinks();
foreach($all_links as $tbl => $links) {