Lines 75-86
if ( $cgi->param('name') ) { # Update or create club
Link Here
|
75 |
$id ||= $club_template->id(); |
75 |
$id ||= $club_template->id(); |
76 |
|
76 |
|
77 |
# Update club creation fields |
77 |
# Update club creation fields |
78 |
my @field_id = $cgi->param('club_template_field_id'); |
78 |
my @field_id = $cgi->multi_param('club_template_field_id'); |
79 |
my @field_name = $cgi->param('club_template_field_name'); |
79 |
my @field_name = $cgi->multi_param('club_template_field_name'); |
80 |
my @field_description = $cgi->param('club_template_field_description'); |
80 |
my @field_description = $cgi->multi_param('club_template_field_description'); |
81 |
my @field_authorised_value_category = $cgi->param('club_template_field_authorised_value_category'); |
81 |
my @field_authorised_value_category = $cgi->multi_param('club_template_field_authorised_value_category'); |
82 |
|
82 |
|
83 |
my @field_delete = $cgi->param('club_template_field_delete'); |
83 |
my @field_delete = $cgi->multi_param('club_template_field_delete'); |
84 |
|
84 |
|
85 |
for ( my $i = 0 ; $i < @field_id ; $i++ ) { |
85 |
for ( my $i = 0 ; $i < @field_id ; $i++ ) { |
86 |
my $field_id = $field_id[$i]; |
86 |
my $field_id = $field_id[$i]; |
Lines 109-120
if ( $cgi->param('name') ) { # Update or create club
Link Here
|
109 |
} |
109 |
} |
110 |
|
110 |
|
111 |
# Update club enrollment fields |
111 |
# Update club enrollment fields |
112 |
@field_id = $cgi->param('club_template_enrollment_field_id'); |
112 |
@field_id = $cgi->multi_param('club_template_enrollment_field_id'); |
113 |
@field_name = $cgi->param('club_template_enrollment_field_name'); |
113 |
@field_name = $cgi->multi_param('club_template_enrollment_field_name'); |
114 |
@field_description = $cgi->param('club_template_enrollment_field_description'); |
114 |
@field_description = $cgi->multi_param('club_template_enrollment_field_description'); |
115 |
@field_authorised_value_category = $cgi->param('club_template_enrollment_field_authorised_value_category'); |
115 |
@field_authorised_value_category = $cgi->multi_param('club_template_enrollment_field_authorised_value_category'); |
116 |
|
116 |
|
117 |
@field_delete = $cgi->param('club_template_enrollment_field_delete'); |
117 |
@field_delete = $cgi->multi_param('club_template_enrollment_field_delete'); |
118 |
|
118 |
|
119 |
for ( my $i = 0 ; $i < @field_id ; $i++ ) { |
119 |
for ( my $i = 0 ; $i < @field_id ; $i++ ) { |
120 |
my $field_id = $field_id[$i]; |
120 |
my $field_id = $field_id[$i]; |