diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-10 14:06:29 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-10 14:06:29 -0600 |
commit | 0db02d518080007ae5c682836390cdb5e14ac916 (patch) | |
tree | 783a263445d635fa1f562daac8509ad51e8894fb /FS/FS/reason.pm | |
parent | ad1d603d9e9a813e697c267d29fefd00fee56ae7 (diff) |
Bug fix: removed unintended variable localization
Diffstat (limited to 'FS/FS/reason.pm')
-rw-r--r-- | FS/FS/reason.pm | 2 |
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; |