Skip to content

Commit f8813f8

Browse files
kidclampjoubu
authored andcommitted
Bug 28750: (bug 17600 follow-up) Use full path for subroutines
Throughout the file we call methods with the module Following suit rather than importing the methods To test: 1 - Attempt to load advanced cataloging editor 2 - it fails 3 - http://localhost:8081/cgi-bin/koha/svc/cataloguing/framework?frameworkcode=&callback=define 4 - Undefined subroutine &CGI::Compile::ROOT::kohadevbox_koha_svc_cataloguing_framework::GetMarcStructure called at /kohadevbox/koha/svc/cataloguing/framework line 18 5 - Apply patch 6 - Cataloging editor loads! 7 - Link in #3 loads! Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
1 parent f891156 commit f8813f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

svc/cataloguing/framework

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ my ( $query, $response ) = C4::Service->init( editcatalogue => 'edit_catalogue'
1515

1616
my $frameworkcode = $query->param( 'frameworkcode' ) // '';
1717

18-
my $tagslib = GetMarcStructure( 1, $frameworkcode );
18+
my $tagslib = C4::Biblio::GetMarcStructure( 1, $frameworkcode );
1919

2020
my @tags;
2121

@@ -42,7 +42,7 @@ $authorised_values->{itemtypes} = [ $schema->resultset( "Itemtype" )->search( un
4242
result_class => 'DBIx::Class::ResultClass::HashRefInflator'
4343
} ) ];
4444

45-
my $class_sources = GetClassSources();
45+
my $class_sources = C4::ClassSource::GetClassSources();
4646

4747
my $default_source = C4::Context->preference("DefaultClassificationSource");
4848

0 commit comments

Comments
 (0)