fix: [feeds] pulling freetext feed sets attribute distribution, fixes #7992

- should just inherit the event's setting
- when using sharing groups this becomes a serious issue
pull/8008/head
iglocska 2021-11-24 22:16:48 +01:00
parent fa483441d8
commit ee92a57789
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -1237,8 +1237,8 @@ class Feed extends AppModel
continue;
}
$data[$key]['event_id'] = $event['Event']['id'];
$data[$key]['distribution'] = $feed['Feed']['distribution'];
$data[$key]['sharing_group_id'] = $feed['Feed']['sharing_group_id'];
$data[$key]['distribution'] = 5;
$data[$key]['sharing_group_id'] = 0;
$data[$key]['to_ids'] = $feed['Feed']['override_ids'] ? 0 : $value['to_ids'];
$uniqueValues[$value['value']] = true;
}