fix: [attribute:editPostProcessing] Fixed typo in condition preventing tags to be detached

pull/9438/head
Sami Mokaddem 2023-11-24 15:37:03 +01:00
parent 5ec0ac952d
commit 91e6a4ba4a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -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']