From 97f296e1707f08b05ae17dca677435133b92e9af Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 29 Aug 2013 13:28:44 +0200 Subject: [PATCH] Bug 10855: Fix Type table vs tablename Koha::AdditionalField->all method take "tablename" not "table" in parameter". --- serials/claims.pl | 2 +- serials/serials-search.pl | 2 +- serials/subscription-add.pl | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/serials/claims.pl b/serials/claims.pl index d1af723..443b3b3 100755 --- a/serials/claims.pl +++ b/serials/claims.pl @@ -60,7 +60,7 @@ for my $s (@{$supplierlist} ) { } } -my $additional_fields = Koha::AdditionalField->all( { table => 'subscription', searchable => 1 } ); +my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription', searchable => 1 } ); for my $field ( @$additional_fields ) { if ( $field->{authorised_value_category} ) { $field->{authorised_value_choices} = GetAuthorisedValues( $field->{authorised_value_category} ); diff --git a/serials/serials-search.pl b/serials/serials-search.pl index 6f924a3..9bdeea7 100755 --- a/serials/serials-search.pl +++ b/serials/serials-search.pl @@ -73,7 +73,7 @@ if ( $op and $op eq "close" ) { } -my $additional_fields = Koha::AdditionalField->all( { table => 'subscription', searchable => 1 } ); +my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription', searchable => 1 } ); my $additional_field_filters; for my $field ( @$additional_fields ) { if ( defined ( my $filter_value = $query->param('additional_field_' . $field->{id} . '_filter') ) ) { diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index be583f9..91fb92a 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -155,7 +155,7 @@ $template->param(branchloop => $branchloop, ); -my $additional_fields = Koha::AdditionalField->all( { table => 'subscription' } ); +my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription' } ); for my $field ( @$additional_fields ) { if ( $field->{authorised_value_category} ) { $field->{authorised_value_choices} = GetAuthorisedValues( $field->{authorised_value_category} ); @@ -349,7 +349,7 @@ sub redirect_add_subscription { $skip_serialseq ); - my $additional_fields = Koha::AdditionalField->all( { table => 'subscription' } ); + my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription' } ); my @additional_field_values; for my $field ( @$additional_fields ) { my $af = Koha::AdditionalField->new({ id => $field->{id} }); @@ -434,7 +434,7 @@ sub redirect_mod_subscription { $skip_serialseq ); - my $additional_fields = Koha::AdditionalField->all( { table => 'subscription' } ); + my $additional_fields = Koha::AdditionalField->all( { tablename => 'subscription' } ); my @additional_field_values; for my $field ( @$additional_fields ) { my $af = Koha::AdditionalField->new({ id => $field->{id} })->fetch; -- 1.7.10.4