Skip to content

Commit

Permalink
undo part of the change
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Sep 17, 2024
1 parent 7592930 commit a3e7ea3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions eme-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5289,7 +5289,7 @@ function eme_registration_seats_form_table( $pending = 0, $trash = 0 ) {
$extrafieldnames_arr[] = eme_trans_esc_html( $formfield['field_name'] );
$extrafieldsearchable_arr[] = $formfield['searchable'];
}
// add the formfields of events and people last
// add the formfields of events last
// first a separator (will be used in the js)
$formfields = eme_get_formfields( '', 'events' );
if (!empty($formfields)) {
Expand All @@ -5302,17 +5302,6 @@ function eme_registration_seats_form_table( $pending = 0, $trash = 0 ) {
$extrafieldsearchable_arr[] = $formfield['searchable'];
}
}
$formfields = eme_get_formfields( '', 'people' );
if (!empty($formfields)) {
$extrafields_arr[] = 'SEPARATOR';
$extrafieldnames_arr[] = '<b>'.__('People fields','events-made-easy').'</b>';
$extrafieldsearchable_arr[] = 0;
foreach ( $formfields as $formfield ) {
$extrafields_arr[] = $formfield['field_id'];
$extrafieldnames_arr[] = eme_trans_esc_html( $formfield['field_name'] );
$extrafieldsearchable_arr[] = $formfield['searchable'];
}
}
// these 2 values are used as data-fields to the container-div, and are used by the js to create extra columns
$extrafields = join( ',', $extrafields_arr );
$extrafieldnames = join( ',', $extrafieldnames_arr );
Expand Down

0 comments on commit a3e7ea3

Please sign in to comment.