diff --git a/app/Controller/AttributesController.php b/app/Controller/AttributesController.php index 7d405b446..4c3d5c47f 100755 --- a/app/Controller/AttributesController.php +++ b/app/Controller/AttributesController.php @@ -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