mirror of https://github.com/MISP/MISP
fix: api order not working because of dropped param/incorrect handling, related to #9359
parent
c4b08ec36d
commit
e1f99a2824
|
@ -59,7 +59,8 @@ class RestSearchComponent extends Component
|
|||
'event_ids',
|
||||
'includeAllTags',
|
||||
'includeAttributeUuid',
|
||||
'includeGalaxy'
|
||||
'includeGalaxy',
|
||||
'order'
|
||||
],
|
||||
'Event' => [
|
||||
'returnFormat',
|
||||
|
@ -188,7 +189,8 @@ class RestSearchComponent extends Component
|
|||
'minimal',
|
||||
'list',
|
||||
'first',
|
||||
'count'
|
||||
'count',
|
||||
'order'
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
@ -1688,7 +1688,7 @@ class Attribute extends AppModel
|
|||
}
|
||||
$params['order'] = [];
|
||||
if (!empty($options['order'])) {
|
||||
$options['order'] = $this->findOrder(
|
||||
$params['order'] = $this->findOrder(
|
||||
$options['order'],
|
||||
'Attribute',
|
||||
['id', 'event_id', 'object_id', 'type', 'category', 'value', 'distribution', 'timestamp', 'object_relation']
|
||||
|
|
|
@ -1064,7 +1064,7 @@ class GalaxyCluster extends AppModel
|
|||
$params['group'] = $options['group'];
|
||||
}
|
||||
if (!empty($options['order'])) {
|
||||
$options['order'] = $this->findOrder(
|
||||
$params['order'] = $this->findOrder(
|
||||
$options['order'],
|
||||
'GalaxyCluster',
|
||||
['id', 'event_id', 'version', 'type', 'value', 'distribution', 'orgc_id', 'org_id', 'tag_name', 'galaxy_id']
|
||||
|
|
|
@ -1214,7 +1214,7 @@ class Workflow extends AppModel
|
|||
|
||||
$params['order'] = [];
|
||||
if (!empty($options['order'])) {
|
||||
$options['order'] = $this->findOrder(
|
||||
$params['order'] = $this->findOrder(
|
||||
$options['order'],
|
||||
'Workflow',
|
||||
['id', 'name', 'timestmap', 'trigger_id', 'counter']
|
||||
|
|
Loading…
Reference in New Issue