Merge branch 'develop' of ssh://172.29.79.164/home/git/cydefsig into develop

pull/63/head
Andras Iklody 2013-01-25 12:24:37 +01:00
commit b0448c4a92
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