From 2297998246e97aceeb451b60bbee174a39002238 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 Apr 2014 16:37:17 +0200 Subject: [PATCH] Bug 7673: Update syspref names in script The both syspref names have been changed since the first patch. Signed-off-by: Koha Team AMU --- cataloguing/additem.pl | 4 ++-- tools/batchMod.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 32e522a..d1010a1 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -159,8 +159,8 @@ sub generate_subfield_form { my $attributes_no_value_textarea = qq(tabindex="1" id="$subfield_data{id}" name="field_value" class="input_marceditor" rows="5" cols="64" ); # Getting list of subfields to keep when limited edition is enabled - my $subfieldsToAllowForLimitedEdition = C4::Context->preference('SubfieldsToAllowForLimitedEdition'); - my @subfieldsToAllow = split(/ /, $subfieldsToAllowForLimitedEdition); + my $subfieldsToAllowForRestrictedEdition = C4::Context->preference('SubfieldsToAllowForRestrictedEdition'); + my @subfieldsToAllow = split(/ /, $subfieldsToAllowForRestrictedEdition); # If we're on limited edition, and our field is not in the list of subfields to allow, # then it is read-only diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 846ab10..f9a3a0b 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -300,7 +300,7 @@ unshift (@$branches, $nochange_branch); my $pref_itemcallnumber = C4::Context->preference('itemcallnumber'); # Getting list of subfields to keep when limited batchmod edit is enabled -my $subfieldsToAllowForBatchmod = C4::Context->preference('SubfieldsToAllowForLimitedBatchmod'); +my $subfieldsToAllowForBatchmod = C4::Context->preference('SubfieldsToAllowForRestrictedBatchmod'); my @subfieldsToAllow = split(/ /, $subfieldsToAllowForBatchmod); foreach my $tag (sort keys %{$tagslib}) { -- 1.7.10.4