protected function getSourceSQL() { $sql = parent::getSourceSQL(); $sql .= ' and attribute in (select attributeid from attributes where site in (select siteid from sites where keep = true) and hidden = \'0\')'; return $sql; }
protected function getSourceSQL() { $sql = parent::getSourceSQL(); $sql .= ' and keep = true'; return $sql; }