fix: [proposal] Repaired deletion proposal

pull/4103/head
mokaddem 2019-01-31 14:53:48 +01:00
parent 3ab9b888cc
commit 9e60c0d6d6
1 changed files with 2 additions and 1 deletions

View File

@ -824,7 +824,7 @@ class ShadowAttributesController extends AppController
$id = $temp['Attribute']['id'];
}
$existingAttribute = $this->ShadowAttribute->Event->Attribute->fetchAttributes($this->Auth->user(), array('Attriute.id' => $id));
$existingAttribute = $this->ShadowAttribute->Event->Attribute->fetchAttributes($this->Auth->user(), array('Attribute.id' => $id));
if (empty($existingAttribute)) {
throw new NotFoundException(__('Invalid attribute.'));
}
@ -861,6 +861,7 @@ class ShadowAttributesController extends AppController
if (empty($existingAttribute)) {
throw new NotFoundException(__('Invalid Attribute'));
}
$existingAttribute = $existingAttribute[0];
$this->set('id', $id);
$this->set('event_id', $existingAttribute['Attribute']['event_id']);
$this->render('ajax/deletionProposalConfirmationForm');