fix: Object could not be added with no full group by enabled, fixes #4195

pull/4438/head
iglocska 2019-02-22 07:52:53 +01:00
parent f6467f39f9
commit 98cf493611
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class ObjectTemplatesController extends AppController
$metas = $this->ObjectTemplate->find('list', array(
'recursive' => -1,
'conditions' => array('ObjectTemplate.active' => 1),
'fields' => array('meta-category'),
'fields' => array('meta-category', 'meta-category'),
'group' => array('ObjectTemplate.meta-category'),
'order' => array('ObjectTemplate.meta-category asc')
));