fix: [attribute:restSearch] `includeCorrelations` Do not longer returns

soft-deleted attributes
pull/7267/head
mokaddem 2021-03-29 10:37:27 +02:00
parent 6a944c8086
commit 934d43db59
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -1405,6 +1405,7 @@ class Attribute extends AppModel
// prepare the conditions
$conditions = array(
'Attribute.event_id !=' => $attribute['event_id'],
'Attribute.deleted !=' => 1,
);
// prevent issues with empty fields