mirror of https://github.com/MISP/MISP
Merge pull request #1131 from I-am-Sherlocked/patch-5
Resolving the sql_mode=only_full_group_by error in Search Logpull/1136/head
commit
e438ee41f8
|
@ -244,7 +244,7 @@ class LogsController extends AppController {
|
|||
$models = array('Attribute', 'Event', 'EventBlacklist', 'EventTag', 'Organisation', 'Post', 'Regexp', 'Role', 'Server', 'ShadowAttribute', 'SharingGroup', 'Tag', 'Task', 'Taxonomy', 'Template', 'Thread', 'User', 'Whitelist');
|
||||
$existing_models = $this->Log->find('list', array(
|
||||
'fields' => array('Log.model'),
|
||||
'group' => array('Log.model')
|
||||
'group' => array('Log.model','Log.id')
|
||||
));
|
||||
$models = array_intersect($models, $existing_models);
|
||||
$models = array('' => 'ALL') + $this->_arrayToValuesIndexArray($models);
|
||||
|
|
Loading…
Reference in New Issue