Bug 20304: (QA follow-up) Remove unwanted 'my'
'my' creates a new '$value' variable, and prevented the '$value' in outer scope to be modified Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4f8add9613
commit
b6c739ae9c
|
|
@ -156,7 +156,7 @@ sub generate_subfield_form {
|
|||
my $CNsubfield2 = substr($pref_itemcallnumber, 4, 1);
|
||||
my $temp2 = $temp->field($CNtag);
|
||||
if ($temp2) {
|
||||
my $value = join ' ', $temp2->subfield($CNsubfield) || q{}, $temp2->subfield($CNsubfield2) || q{};
|
||||
$value = join ' ', $temp2->subfield($CNsubfield) || q{}, $temp2->subfield($CNsubfield2) || q{};
|
||||
#remove any trailing space incase one subfield is used
|
||||
$value =~ s/^\s+|\s+$//g;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue