From c4de85fc2cd95e29b03ec28d6815dad5f013fc7e Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Thu, 16 Feb 2012 17:10:30 +0100 Subject: [PATCH] bug 7546 follow-up, enabled_staff_search_views problem * enabled_staff_search_views was not exported by C4::Search, should have been * cataloguing/additem.pl was missing use C4::Search * serials/serials-edit.pl were also missing it Comments: * checked with for file in */*.pl; do perl -wc $file; done that no script was still having this problem * why this problem appears now is unclear to me. I understand it's related to de-nesting, but would be happy to have a complete explanation ! --- C4/Search.pm | 1 + cataloguing/additem.pl | 1 + serials/serials-edit.pl | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index e86bb26..c4276a3 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -71,6 +71,7 @@ This module provides searching functions for Koha's bibliographic databases &AddSearchHistory &GetDistinctValues &BiblioAddAuthorities + &enabled_staff_search_views ); #FIXME: i had to add BiblioAddAuthorities here because in Biblios.pm it caused circular dependencies (C4::Search uses C4::Biblio, and BiblioAddAuthorities uses SimpleSearch from C4::Search) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 248c0de..73727a2 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -31,6 +31,7 @@ use C4::Koha; # XXX subfield_is_koha_internal_p use C4::Branch; # XXX subfield_is_koha_internal_p use C4::ClassSource; use C4::Dates; +use C4::Search qw/enabled_staff_search_views/; use List::MoreUtils qw/any/; use MARC::File::XML; diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index 12f568c..1a60632 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -72,6 +72,7 @@ use C4::Koha; use C4::Output; use C4::Context; use C4::Serials; +use C4::Search qw/enabled_staff_search_views/; use List::MoreUtils qw/uniq/; my $query = CGI->new(); -- 1.7.5.4