|
|
@@ -453,11 +453,12 @@ class ACL {
|
|
|
return DB::getPDO()->fetchValue(" select count(*) as cnt from `{$refTable}` where PRIMARY_KEY = :primary_key and A_STATUS not in ('DELETED') ", [ ':primary_key' => $primaryKey ]);
|
|
|
}
|
|
|
|
|
|
- return DB::getPDO()->fetchAll("
|
|
|
+ return DB::getPDO()->fetchValuesList("
|
|
|
select REMOTE_PRIMARY_KEY
|
|
|
from `{$refConf->tableName}`
|
|
|
where PRIMARY_KEY = :primaryKey
|
|
|
and A_STATUS not in ('DELETED')
|
|
|
+ group by REMOTE_PRIMARY_KEY
|
|
|
", [ ':primaryKey' => $primaryKey ]);
|
|
|
// TODO: order by SORT_PRIO
|
|
|
}
|