function applyFilters($q, $au)
{
- //DB_DataObject::debugLevel(1);
+// DB_DataObject::debugLevel(1);
if (!empty($q['query']['empty_etype'])) {
$this->whereAdd("etype = ''");
}
");
}
- $this->autoJoin();
+
+// print_r($this);
if(!empty($q['id'])){
$this->id = $q['id'];
}
CASE WHEN
'$l' = 'en' THEN display_name
ELSE
- cms_templatestr.txt
+ CASE WHEN cms_templatestr.txt IS NOT NULL AND cms_templatestr.txt != '' THEN
+ cms_templatestr.txt
+ ELSE
+ display_name
+ END
END as display_name_tr
");