Merge branch '2.4' into develop

pull/9440/head
iglocska 2023-12-05 16:10:04 +01:00
commit 6ed692b2d1
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 6 additions and 9 deletions

View File

@ -2781,16 +2781,11 @@ class Attribute extends AppModel
}
if (!empty($tagActions['detach'])) {
$conditions = ['OR' => []];
foreach ($tagActions['detach'] as $detach) {
$conditions['OR'][] = [
'AND' => [
'attribute_id' => $detach['attribute_id'],
'tag_id' => $detach['tag_id']
]
$conditions = [
'attribute_id' => $detach['attribute_id'],
'tag_id' => $detach['tag_id']
];
}
if (!empty($conditions)) {
$this->AttributeTag->deleteAll($conditions, false);
}
}

View File

@ -1,6 +1,8 @@
openapi: 3.0.0
openapi: 3.1.0
info:
title: MISP Automation API
version: "2.4"
description: |
### Getting Started