Lines 566-573
my $branchcode = $input->param('branch') || C4::Context->userenv->{branch};
Link Here
|
566 |
# If the subfield must be prefilled with last catalogued item |
566 |
# If the subfield must be prefilled with last catalogued item |
567 |
my @subfields_to_prefill; |
567 |
my @subfields_to_prefill; |
568 |
if ( $nextop eq 'additem' && $prefillitem ) { |
568 |
if ( $nextop eq 'additem' && $prefillitem ) { |
|
|
569 |
@subfields_to_prefill = split(' ', C4::Context->preference('SubfieldsToUseWhenPrefill')); |
569 |
# Setting to 1 element if SubfieldsToUseWhenPrefill is empty to prevent all the subfields to be prefilled |
570 |
# Setting to 1 element if SubfieldsToUseWhenPrefill is empty to prevent all the subfields to be prefilled |
570 |
@subfields_to_prefill = split(' ', C4::Context->preference('SubfieldsToUseWhenPrefill')) || (""); |
571 |
@subfields_to_prefill = ("") unless @subfields_to_prefill; |
571 |
} |
572 |
} |
572 |
|
573 |
|
573 |
# Getting list of subfields to keep when restricted editing is enabled |
574 |
# Getting list of subfields to keep when restricted editing is enabled |
574 |
- |
|
|