summaryrefslogtreecommitdiff
path: root/FS/FS/reason.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-02-10 14:06:29 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-02-10 14:06:29 -0600
commit0db02d518080007ae5c682836390cdb5e14ac916 (patch)
tree783a263445d635fa1f562daac8509ad51e8894fb /FS/FS/reason.pm
parentad1d603d9e9a813e697c267d29fefd00fee56ae7 (diff)
Bug fix: removed unintended variable localization
Diffstat (limited to 'FS/FS/reason.pm')
-rw-r--r--FS/FS/reason.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/reason.pm b/FS/FS/reason.pm
index 864804d..9c34dd9 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;