mirror of https://github.com/MISP/MISP
fix: [attribute:editPostProcessing] Fixed typo in condition preventing tags to be detached
parent
5ec0ac952d
commit
91e6a4ba4a
|
@ -2781,9 +2781,9 @@ class Attribute extends AppModel
|
|||
|
||||
}
|
||||
if (!empty($tagActions['detach'])) {
|
||||
$conditions = [];
|
||||
$conditions = ['OR' => []];
|
||||
foreach ($tagActions['detach'] as $detach) {
|
||||
$conditions[] = [
|
||||
$conditions['OR'][] = [
|
||||
'AND' => [
|
||||
'attribute_id' => $detach['attribute_id'],
|
||||
'tag_id' => $detach['tag_id']
|
||||
|
|
Loading…
Reference in New Issue