fix: [decaying:tool] Support strict sql mode while fetching available

Object type
pull/5668/head
mokaddem 2020-02-21 16:33:34 +01:00
parent f94c693aa0
commit 980dbf557e
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ObjectTemplateElement extends AppModel
$temp = $this->find('all', array(
'recursive' => -1,
'fields' => array('object_relation as type', 'description AS desc', 'categories'),
'group' => 'type'
'group' => array('object_relation', 'description', 'categories')
));
$res = array();
foreach ($temp as $type) {