projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
that was a confusing bug to fix
[freeside.git]
/
httemplate
/
edit
/
process
/
part_svc.cgi
diff --git
a/httemplate/edit/process/part_svc.cgi
b/httemplate/edit/process/part_svc.cgi
index
937f7fb
..
423db93
100755
(executable)
--- a/
httemplate/edit/process/part_svc.cgi
+++ b/
httemplate/edit/process/part_svc.cgi
@@
-12,7
+12,9
@@
my $new = new FS::part_svc ( {
map { my $svcdb = $_;
map { ( $svcdb.'__'.$_, $svcdb.'__'.$_.'_flag' ) }
fields($svcdb)
map { my $svcdb = $_;
map { ( $svcdb.'__'.$_, $svcdb.'__'.$_.'_flag' ) }
fields($svcdb)
- } qw( svc_acct svc_domain svc_acct_sm svc_forward svc_www ) )
+ } grep defined( $FS::Record::dbdef->table($_) ),
+ qw( svc_acct svc_domain svc_acct_sm svc_forward svc_www )
+ )
} );
my $error;
} );
my $error;
@@
-25,7
+27,7
@@
if ( $svcpart ) {
if ( $error ) {
$cgi->param('error', $error);
if ( $error ) {
$cgi->param('error', $error);
- print $cgi->redirect(popurl(2)
,
"part_svc.cgi?". $cgi->query_string );
+ print $cgi->redirect(popurl(2)
.
"part_svc.cgi?". $cgi->query_string );
} else {
print $cgi->redirect(popurl(3)."browse/part_svc.cgi");
}
} else {
print $cgi->redirect(popurl(3)."browse/part_svc.cgi");
}