fix: Fixed an issue with the roles model failing on stricter MySQL settings due to missing group by

pull/2379/merge
iglocska 2017-07-31 12:10:47 +02:00
parent dd4a0c3991
commit f5f1591335
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class TemplateElement extends AppModel {
'fields' => array('MAX(position) AS pos', 'id', 'template_id'),
'conditions' => array('template_id' => $template_id),
'order' => array('id'),
'group' => array('id')
'group' => array('id', 'template_id')
));
if (empty($result)) {
return 0;