View | Details | Raw Unified | Return to bug 29662
Collapse All | Expand All

(-)a/Koha/UI/Form/Builder/Item.pm (+2 lines)
Lines 429-434 Flag to restrict the edition if the user does not have necessary permissions. Link Here
429
429
430
List of subfields to prefill (value of syspref SubfieldsToUseWhenPrefill)
430
List of subfields to prefill (value of syspref SubfieldsToUseWhenPrefill)
431
431
432
If empty all subfields will be prefilled. For none, you can pass an array with a single false value.
433
432
=item subfields_to_allow
434
=item subfields_to_allow
433
435
434
List of subfields to allow (value of syspref SubfieldsToAllowForRestrictedBatchmod or SubfieldsToAllowForRestrictedEditing)
436
List of subfields to allow (value of syspref SubfieldsToAllowForRestrictedBatchmod or SubfieldsToAllowForRestrictedEditing)
(-)a/cataloguing/additem.pl (-3 lines)
Lines 607-614 my $branchcode = $input->param('branch') || C4::Context->userenv->{branch}; Link Here
607
my @subfields_to_prefill;
607
my @subfields_to_prefill;
608
if ( $nextop eq 'additem' && $op ne 'dupeitem' && $prefillitem ) {
608
if ( $nextop eq 'additem' && $op ne 'dupeitem' && $prefillitem ) {
609
    @subfields_to_prefill = split(' ', C4::Context->preference('SubfieldsToUseWhenPrefill'));
609
    @subfields_to_prefill = split(' ', C4::Context->preference('SubfieldsToUseWhenPrefill'));
610
    # Setting to 1 element if SubfieldsToUseWhenPrefill is empty to prevent all the subfields to be prefilled
611
    @subfields_to_prefill = ("") unless @subfields_to_prefill;
612
}
610
}
613
611
614
# Getting list of subfields to keep when restricted editing is enabled
612
# Getting list of subfields to keep when restricted editing is enabled
615
- 

Return to bug 29662