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

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

Return to bug 29662