fix: [galaxies] Fixed query causing MYSQL errors due to group by not containing a silently loaded field

pull/3368/head
iglocska 2018-06-20 11:33:45 +02:00
parent 381a4b8895
commit 13c144b962
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class GalaxiesController extends AppController {
public function selectGalaxyNamespace($target_id, $target_type='event') {
$namespaces = $this->Galaxy->find('list', array(
'recursive' => -1,
'fields' => array('namespace'),
'fields' => array('namespace', 'namespace'),
'group' => array('namespace')
));
$this->set('namespaces', $namespaces);