distribution

attributes inherit distribution from event.
pull/63/head
Noud de Brouwer 2013-01-25 11:25:18 +00:00
parent d4c5460d9e
commit 3b07348849
1 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,10 @@ class AttributesController extends AppController {
} else {
// set the event_id in the form
$this->request->data['Attribute']['event_id'] = $eventId;
// set distribution in the form
$this->loadModel('Event');
$events = $this->Event->findById($eventId);
$this->request->data['Attribute']['distribution'] = $events['Event']['distribution'];
}
// combobox for types