projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c174642
)
another pg7.3 fix
author
ivan
<ivan>
Tue, 11 Mar 2003 11:40:35 +0000
(11:40 +0000)
committer
ivan
<ivan>
Tue, 11 Mar 2003 11:40:35 +0000
(11:40 +0000)
FS/FS/svc_domain.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_domain.pm
b/FS/FS/svc_domain.pm
index
0d71b27
..
3941d6e
100644
(file)
--- a/
FS/FS/svc_domain.pm
+++ b/
FS/FS/svc_domain.pm
@@
-382,8
+382,10
@@
sub check {
$recref->{action} =~ /^(M|N)$/ or return "Illegal action";
$recref->{action} = $1;
$recref->{action} =~ /^(M|N)$/ or return "Illegal action";
$recref->{action} = $1;
- my $svc_acct = qsearchs( 'svc_acct', { 'svcnum' => $recref->{catchall} } );
- return "Unknown catchall" unless $svc_acct || ! $recref->{catchall};
+ if ( $recref->{catchall} ne '' ) {
+ my $svc_acct = qsearchs( 'svc_acct', { 'svcnum' => $recref->{catchall} } );
+ return "Unknown catchall" unless $svc_acct;
+ }
$self->ut_textn('purpose');
$self->ut_textn('purpose');