projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svc_group, RT#81628
[freeside.git]
/
httemplate
/
edit
/
process
/
svc_domain.cgi
diff --git
a/httemplate/edit/process/svc_domain.cgi
b/httemplate/edit/process/svc_domain.cgi
index
381339b
..
a5c617d
100755
(executable)
--- a/
httemplate/edit/process/svc_domain.cgi
+++ b/
httemplate/edit/process/svc_domain.cgi
@@
-46,6
+46,11
@@
my $new = new FS::svc_domain ( {
} ( fields('svc_domain'), qw( pkgnum svcpart action ) )
} );
} ( fields('svc_domain'), qw( pkgnum svcpart action ) )
} );
+# trim leading and trailing whitespace to avoid errors caused by pasting into UI
+my $domain = $new->domain;
+$domain =~ s/^\s+|\s+$//g;
+$new->domain($domain);
+
my $error = '';
if ($cgi->param('svcnum')) {
$error = $new->replace();
my $error = '';
if ($cgi->param('svcnum')) {
$error = $new->replace();