diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index 81820d54b..2ee7db46e 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -1834,6 +1834,14 @@ sub www_editEvent { if (scalar(keys(%discountPasses))) { #there are some discount passes entered into the system %discountPasses = (''=>$i18n->get('select one'),%discountPasses); + $f->selectBox( + -name=>'passId', + -rowClass=>'" id="passIdRow', # tricky little hack. + -options=>\%discountPasses, + -label=>$i18n->echo('assigned discount pass'), + -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.'), + -value=>$self->session->form->get("passId") || $event->{passId} + ); $f->radioList( -name=>'passType', -options=>\%passOptions, @@ -1863,14 +1871,6 @@ changePassType(); -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.'), -value=>$self->session->form->get("passId") || $event->{passId} ); - $f->selectBox( - -name=>'passId', - -rowClass=>' id="passIdRow"', - -options=>\%discountPasses, - -label=>$i18n->echo('assigned discount pass'), - -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.'), - -value=>$self->session->form->get("passId") || $event->{passId} - ); } # add dynamically added metadata fields.