@@ -, +, @@ --- clubs/clubs-add-modify.pl | 6 +++--- clubs/patron-clubs-tab.pl | 10 +++++----- clubs/templates-add-modify.pl | 20 ++++++++++---------- .../prog/en/modules/circ/circulation.tt | 2 +- .../prog/en/modules/clubs/templates-add-modify.tt | 6 +++--- 5 files changed, 22 insertions(+), 22 deletions(-) --- a/clubs/clubs-add-modify.pl +++ a/clubs/clubs-add-modify.pl @@ -68,9 +68,9 @@ if ( $cgi->param('name') ) { # Update or create club } )->store(); - my @club_template_field_id = $cgi->param('club_template_field_id'); - my @club_field_id = $cgi->param('club_field_id'); - my @club_field = $cgi->param('club_field'); + my @club_template_field_id = $cgi->multi_param('club_template_field_id'); + my @club_field_id = $cgi->multi_param('club_field_id'); + my @club_field = $cgi->multi_param('club_field'); for ( my $i = 0 ; $i < @club_template_field_id ; $i++ ) { my $club_template_field_id = $club_template_field_id[$i] || undef; --- a/clubs/patron-clubs-tab.pl +++ a/clubs/patron-clubs-tab.pl @@ -39,17 +39,17 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $borrowernumber = $cgi->param('borrowernumber'); +my $patronnumber = $cgi->param('borrowernumber'); -my $borrower = Koha::Patrons->find($borrowernumber); +my $patron = Koha::Patrons->find($patronnumber); -my @enrollments = $borrower->get_club_enrollments(); -my @clubs = $borrower->get_enrollable_clubs(); +my @enrollments = $patron->get_club_enrollments(); +my @clubs = $patron->get_enrollable_clubs(); $template->param( enrollments => \@enrollments, clubs => \@clubs, - borrowernumber => $borrowernumber + borrowernumber => $patronnumber ); output_html_with_http_headers( $cgi, $cookie, $template->output ); --- a/clubs/templates-add-modify.pl +++ a/clubs/templates-add-modify.pl @@ -75,12 +75,12 @@ if ( $cgi->param('name') ) { # Update or create club $id ||= $club_template->id(); # Update club creation fields - my @field_id = $cgi->param('club_template_field_id'); - my @field_name = $cgi->param('club_template_field_name'); - my @field_description = $cgi->param('club_template_field_description'); - my @field_authorised_value_category = $cgi->param('club_template_field_authorised_value_category'); + my @field_id = $cgi->multi_param('club_template_field_id'); + my @field_name = $cgi->multi_param('club_template_field_name'); + my @field_description = $cgi->multi_param('club_template_field_description'); + my @field_authorised_value_category = $cgi->multi_param('club_template_field_authorised_value_category'); - my @field_delete = $cgi->param('club_template_field_delete'); + my @field_delete = $cgi->multi_param('club_template_field_delete'); for ( my $i = 0 ; $i < @field_id ; $i++ ) { my $field_id = $field_id[$i]; @@ -109,12 +109,12 @@ if ( $cgi->param('name') ) { # Update or create club } # Update club enrollment fields - @field_id = $cgi->param('club_template_enrollment_field_id'); - @field_name = $cgi->param('club_template_enrollment_field_name'); - @field_description = $cgi->param('club_template_enrollment_field_description'); - @field_authorised_value_category = $cgi->param('club_template_enrollment_field_authorised_value_category'); + @field_id = $cgi->multi_param('club_template_enrollment_field_id'); + @field_name = $cgi->multi_param('club_template_enrollment_field_name'); + @field_description = $cgi->multi_param('club_template_enrollment_field_description'); + @field_authorised_value_category = $cgi->multi_param('club_template_enrollment_field_authorised_value_category'); - @field_delete = $cgi->param('club_template_enrollment_field_delete'); + @field_delete = $cgi->multi_param('club_template_enrollment_field_delete'); for ( my $i = 0 ; $i < @field_id ; $i++ ) { my $field_id = $field_id[$i]; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -956,7 +956,7 @@ No patron matched [% message | html %] [% END %] -[% IF CAN_user_clubs %] +[% IF CAN_user_clubs && ( enrollable || enrollments ) %]
Loading...
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt @@ -45,7 +45,7 @@
  • - + [% IF club_template.is_enrollable_from_opac %] [% ELSE %] @@ -55,7 +55,7 @@
  • - + [% IF club_template.is_email_required %] [% ELSE %] @@ -65,7 +65,7 @@
  • - +