@@ -45,19 +45,19 @@ class="non-eduform-options"<?php echo( ! EDU()->is_checked( 'eduadmin-useBooking
4545
4646 $ level_stack = array ();
4747 foreach ( $ cg ['value ' ] as $ g ) {
48- $ level_stack [ (string )$ g ['ParentCustomerGroupId ' ] ][] = $ g ;
48+ $ level_stack [ (string ) $ g ['ParentCustomerGroupId ' ] ][] = $ g ;
4949 }
5050
5151 $ depth = 0 ;
5252
5353 function edu_write_options ( $ g , $ array , $ depth , $ selected_option ) {
54- echo '<option value=" ' . esc_attr ( $ g ['CustomerGroupId ' ] ) . '" ' . ( $ selected_option === (string )$ g ['CustomerGroupId ' ] ? ' selected="selected" ' : '' ) . '> ' .
54+ echo '<option value=" ' . esc_attr ( $ g ['CustomerGroupId ' ] ) . '" ' . ( $ selected_option === (string ) $ g ['CustomerGroupId ' ] ? ' selected="selected" ' : '' ) . '> ' .
5555 str_repeat ( ' ' , $ depth * 4 ) .
5656 esc_html ( wp_strip_all_tags ( $ g ['CustomerGroupName ' ] ) ) .
5757 "</option> \n" ;
58- if ( array_key_exists ( (string )$ g ['CustomerGroupId ' ], $ array ) ) {
58+ if ( array_key_exists ( (string ) $ g ['CustomerGroupId ' ], $ array ) ) {
5959 $ depth ++;
60- foreach ( $ array [ (string )$ g ['CustomerGroupId ' ] ] as $ ng ) {
60+ foreach ( $ array [ (string ) $ g ['CustomerGroupId ' ] ] as $ ng ) {
6161 edu_write_options ( $ ng , $ array , $ depth , $ selected_option );
6262 }
6363 $ depth --;
@@ -136,6 +136,15 @@ class="eduadmin-forceLogin"<?php echo( EDU()->is_checked( 'eduadmin-useLogin', f
136136 <?php echo esc_html_x ( 'Allow end customer to overwrite customer info (requires logged in users) ' , 'backend ' , 'eduadmin-booking ' ); ?>
137137 </label>
138138 <br /><?php
139+ $ alwaysAllowChangeEvent = get_option ( 'eduadmin-alwaysAllowChangeEvent ' , false );
140+ ?>
141+ <label>
142+ <input type="checkbox"
143+ name="eduadmin-alwaysAllowChangeEvent"<?php checked ( $ alwaysAllowChangeEvent , "true " ); ?>
144+ value="true" />
145+ <?php echo esc_html_x ( 'Allow end customers to always switch between available events ' , 'backend ' , 'eduadmin-booking ' ); ?>
146+ </label>
147+ <br /> <?php
139148 $ allowDiscountCode = get_option ( 'eduadmin-allowDiscountCode ' , false );
140149 ?>
141150 <label>
0 commit comments