From 0b9841bf3fea52f423242313afc2cc058d6e6a46 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 23 Apr 2001 07:12:44 +0000 Subject: [PATCH] better error message (if kludgy) for no referral remove outdated NSI foo from domain ordering. also, fuck NSI. --- FS/FS/cust_main.pm | 5 ++++- htdocs/edit/process/svc_domain.cgi | 14 +++++++------- htdocs/edit/svc_domain.cgi | 12 ++++++------ 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 4a254e06c..0379f7f71 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -391,6 +391,9 @@ sub check { || $self->ut_textn('county') || $self->ut_textn('state') ; + #barf. need message catalogs. i18n. etc. + $error .= "Please select a referral." + if $error =~ /^Illegal or empty \(numeric\) refnum: /; return $error if $error; return "Unknown agent" @@ -1114,7 +1117,7 @@ sub check_invoicing_list { =head1 VERSION -$Id: cust_main.pm,v 1.11 2001-04-09 23:05:15 ivan Exp $ +$Id: cust_main.pm,v 1.12 2001-04-23 07:12:44 ivan Exp $ =head1 BUGS diff --git a/htdocs/edit/process/svc_domain.cgi b/htdocs/edit/process/svc_domain.cgi index e12aa1b55..ad1892dd1 100755 --- a/htdocs/edit/process/svc_domain.cgi +++ b/htdocs/edit/process/svc_domain.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_domain.cgi,v 1.6 1999-02-28 00:03:47 ivan Exp $ +# $Id: svc_domain.cgi,v 1.7 2001-04-23 07:12:44 ivan Exp $ # # Usage: post form to: # http://server.name/path/svc_domain.cgi @@ -18,7 +18,11 @@ # bmccane@maxbaud.net 98-apr-3 # # $Log: svc_domain.cgi,v $ -# Revision 1.6 1999-02-28 00:03:47 ivan +# Revision 1.7 2001-04-23 07:12:44 ivan +# better error message (if kludgy) for no referral +# remove outdated NSI foo from domain ordering. also, fuck NSI. +# +# Revision 1.6 1999/02/28 00:03:47 ivan # removed misleading comments # # Revision 1.5 1999/02/07 09:59:33 ivan @@ -60,11 +64,7 @@ $new = new FS::svc_domain ( { } ( fields('svc_domain'), qw( pkgnum svcpart action purpose ) ) } ); -if ($cgi->param('legal') ne "Yes") { - $error = "Customer did not agree to be bound by NSI's ". - qq!!. - "Domain Name Resgistration Agreement"; -} elsif ($cgi->param('svcnum')) { +if ($cgi->param('svcnum')) { $error="Can't modify a domain!"; } else { $error=$new->insert; diff --git a/htdocs/edit/svc_domain.cgi b/htdocs/edit/svc_domain.cgi index 6b5eff560..49be88073 100755 --- a/htdocs/edit/svc_domain.cgi +++ b/htdocs/edit/svc_domain.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_domain.cgi,v 1.9 1999-02-28 00:03:39 ivan Exp $ +# $Id: svc_domain.cgi,v 1.10 2001-04-23 07:12:44 ivan Exp $ # # Usage: svc_domain.cgi pkgnum{pkgnum}-svcpart{svcpart} # http://server.name/path/svc_domain.cgi?pkgnum{pkgnum}-svcpart{svcpart} @@ -15,7 +15,11 @@ # no GOV in instructions ivan@sisd.com 98-jul-17 # # $Log: svc_domain.cgi,v $ -# Revision 1.9 1999-02-28 00:03:39 ivan +# Revision 1.10 2001-04-23 07:12:44 ivan +# better error message (if kludgy) for no referral +# remove outdated NSI foo from domain ordering. also, fuck NSI. +# +# Revision 1.9 1999/02/28 00:03:39 ivan # removed misleading comments # # Revision 1.8 1999/02/07 09:59:25 ivan @@ -138,10 +142,6 @@ print ' CHECKED' if $kludge_action eq 'M'; print qq!>Transfer!; print <Customer agrees to be bound by NSI's - -Domain Name Registration Agreement -

Domain
Purpose/Description:

-- 2.11.0