mirror of https://github.com/MISP/MISP
fix: Fixed an issue with the roles model failing on stricter MySQL settings due to missing group by
parent
dd4a0c3991
commit
f5f1591335
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue