fix: Remove incorrect correlations on deleted attributes

pull/1482/head
iglocska 2016-08-28 00:06:52 +02:00
parent 5ab8167425
commit 80170ed5cc
1 changed files with 1 additions and 0 deletions

View File

@ -1109,6 +1109,7 @@ class Attribute extends AppModel {
),
'Attribute.type !=' => $this->nonCorrelatingTypes,
),
'Attribute.deleted' => 0
),
'recursive => -1',
'fields' => array('Attribute.event_id', 'Attribute.id', 'Attribute.distribution', 'Attribute.sharing_group_id'),