fix: [internal] Typo in attribute controller

pull/8705/head
Jakub Onderka 2022-10-25 17:15:59 +02:00
parent 69997028e3
commit 3ac15c2f7e
1 changed files with 2 additions and 2 deletions

View File

@ -2798,8 +2798,8 @@ class AttributesController extends AppController
$attribute = $this->Attribute->find('first', [
'recursive' => -1,
'conditions' => ['Attribute.id' => $id],
'fields' => ['Attribute.deleted', 'Attribute.event_id', 'Attribute.id', 'Attribute.object_id'],
'contains' => ['Event'],
'fields' => ['Attribute.deleted', 'Attribute.event_id', 'Attribute.id', 'Attribute.object_id', 'Event.orgc_id', 'Event.user_id'],
'contain' => ['Event'],
]);
if (empty($attribute)) {
throw new NotFoundException(__('Invalid attribute'));