fix: fixed events and target event id not properly set

pull/8619/head
Luciano Righetti 2022-09-22 12:35:23 +02:00
parent 805dc8244f
commit 0b68c508a3
No known key found for this signature in database
GPG Key ID: CB91F2A37C557248
1 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,13 @@ echo $this->element('genericElements/Form/genericForm', [
[
'field' => 'fixed_event',
'label' => __('Target Event'),
'options' => ['Fixed Event', 'New Event Each Pull'],
'options' => [1 =>'Fixed Event', 0 => 'New Event Each Pull'],
'type' => 'dropdown',
'div' => ['id' => 'TargetDiv', 'style' => 'display:none', 'class' => 'optionalField'],
'class' => 'form-control span6'
],
[
'field' => 'target_event',
'field' => 'event_id',
'label' => __('Target Event ID'),
'placeholder' => __('Leave blank unless you want to reuse an existing event.'),
'div' => ['id' => 'TargetEventDiv', 'style' => 'display:none', 'class' => 'optionalField'],