Bug 5354 follow-up : dealing with a wrong regexp
I could not reproduce the working behaviour when I found that the tiny follow-up introduced a bug | being a reserved char in regexp, split '|' is not splitting on '|' ! we must write '\|' !
This commit is contained in:
parent
1610a7d61c
commit
fc63a2479f
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ if ($op eq 'modify' || $op eq 'dup' || $op eq 'modsubscription') {
|
|||
|
||||
if ( $op eq 'dup' ) {
|
||||
my $dont_copy_fields = C4::Context->preference('SubscriptionDuplicateDroppedInput');
|
||||
my @fields_id = map { fieldid => $_ }, split '|', $dont_copy_fields;
|
||||
my @fields_id = map { fieldid => $_ }, split '\|', $dont_copy_fields;
|
||||
$template->param( dont_export_field_loop => \@fields_id );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue