mirror of https://github.com/MISP/MISP
fix: [decaying:tool] Support strict sql mode while fetching available
Object typepull/5668/head
parent
f94c693aa0
commit
980dbf557e
|
@ -47,7 +47,7 @@ class ObjectTemplateElement extends AppModel
|
||||||
$temp = $this->find('all', array(
|
$temp = $this->find('all', array(
|
||||||
'recursive' => -1,
|
'recursive' => -1,
|
||||||
'fields' => array('object_relation as type', 'description AS desc', 'categories'),
|
'fields' => array('object_relation as type', 'description AS desc', 'categories'),
|
||||||
'group' => 'type'
|
'group' => array('object_relation', 'description', 'categories')
|
||||||
));
|
));
|
||||||
$res = array();
|
$res = array();
|
||||||
foreach ($temp as $type) {
|
foreach ($temp as $type) {
|
||||||
|
|
Loading…
Reference in New Issue