From 0db02d518080007ae5c682836390cdb5e14ac916 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 10 Feb 2015 14:06:29 -0600 Subject: [PATCH] Bug fix: removed unintended variable localization --- FS/FS/reason.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/reason.pm b/FS/FS/reason.pm index 864804d26..9c34dd98a 100644 --- a/FS/FS/reason.pm +++ b/FS/FS/reason.pm @@ -174,7 +174,7 @@ sub new_or_existing { } } else { my %hash = ('class' => $opt{'class'}, 'type' => $opt{'type'}); - my $reason_type = qsearchs('reason_type', \%hash) + $reason_type = qsearchs('reason_type', \%hash) || FS::reason_type->new(\%hash); $error = $reason_type->insert unless $reason_type->typenum; -- 2.11.0