chg: [feeds:add] Default orgc to $me->org_id and select fixed_event by default

pull/8568/head
Sami Mokaddem 2022-09-01 11:01:31 +02:00
parent 1e73697da2
commit a851764b57
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ echo $this->element('genericElements/Form/genericForm', [
'field' => 'orgc_id',
'label' => __('Creator organisation'),
'options' => $dropdownData['orgs'],
'value' => $this->request->params['action'] === 'add' ? $me['org_id'] : '',
'type' => 'dropdown',
'div' => ['id' => 'OrgcDiv', 'style' => 'display:none', 'class' => 'optionalField'],
'class' => 'form-control span6'
@ -80,7 +81,7 @@ echo $this->element('genericElements/Form/genericForm', [
[
'field' => 'fixed_event',
'label' => __('Target Event'),
'options' => ['New Event Each Pull', 'Fixed Event'],
'options' => ['Fixed Event', 'New Event Each Pull'],
'type' => 'dropdown',
'div' => ['id' => 'TargetDiv', 'style' => 'display:none', 'class' => 'optionalField'],
'class' => 'form-control span6'