mirror of https://github.com/MISP/MISP
fix: Can't add Elements to a newly created Template. fixes #1188
parent
b094af8b12
commit
afe9b8a203
|
@ -25,7 +25,8 @@ class TemplateElement extends AppModel {
|
|||
$result = $this->find('first', array(
|
||||
'fields' => array('MAX(position) AS pos', 'id', 'template_id'),
|
||||
'conditions' => array('template_id' => $template_id),
|
||||
'order' => array('id')
|
||||
'order' => array('id'),
|
||||
'group' => array('id')
|
||||
));
|
||||
return $result[0]['pos'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue