Skip to content
Permalink
Browse files Browse the repository at this point in the history
chg: [attribute] rearranging fixed
  • Loading branch information
iglocska committed Nov 28, 2022
1 parent b78d73a commit afbe08d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/Model/Attribute.php
Expand Up @@ -1705,7 +1705,14 @@ public function fetchAttributes(array $user, array $options = [], &$result_count
if (empty($options['flatten'])) {
$params['conditions']['AND'][] = array('Attribute.object_id' => 0);
}
$params['order'] = isset($options['order']) ? $options['order'] : [];
$params['order'] = [];
if (!empty($options['order'])) {
$options['order'] = $this->findOrder(
$options['order'],
'Attribute',
['id', 'event_id', 'object_id', 'type', 'category', 'value', 'distribution', 'timestamp', 'object_relation']
);
}
if (!isset($options['withAttachments'])) {
$options['withAttachments'] = false;
}
Expand Down

0 comments on commit afbe08d

Please sign in to comment.