fix: [acl] Add event to template when adding shadow attribute

pull/8702/head
Jakub Onderka 2022-10-25 12:03:14 +02:00
parent 014035b475
commit c8cd908c9c
2 changed files with 8 additions and 9 deletions

View File

@ -728,6 +728,7 @@ class ShadowAttributesController extends AppController
}
}
}
$this->set('event', ['Event' => $existingAttribute['Event']]);
$this->set('categories', $categories);
$this->__common();
$this->set('attrDescriptions', $this->ShadowAttribute->fieldDescriptions);

View File

@ -92,9 +92,7 @@
?>
</div>
<?php
$event['Event']['id'] = $this->request->data['ShadowAttribute']['event_id'];
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'event', 'menuItem' => 'proposeAttribute', 'event' => $event));
echo $this->element('form_seen_input');
?>