projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
237bea1
)
better error message for nonexistant cust_main_county records
author
ivan
<ivan>
Fri, 31 Aug 2001 07:28:00 +0000
(07:28 +0000)
committer
ivan
<ivan>
Fri, 31 Aug 2001 07:28:00 +0000
(07:28 +0000)
httemplate/edit/cust_main_county-expand.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/cust_main_county-expand.cgi
b/httemplate/edit/cust_main_county-expand.cgi
index
6b422cc
..
4460ee8
100755
(executable)
--- a/
httemplate/edit/cust_main_county-expand.cgi
+++ b/
httemplate/edit/cust_main_county-expand.cgi
@@
-1,5
+1,5
@@
<%
<%
-#<!-- $Id: cust_main_county-expand.cgi,v 1.
2 2001-08-21 02:31:56
ivan Exp $ -->
+#<!-- $Id: cust_main_county-expand.cgi,v 1.
3 2001-08-31 07:28:00
ivan Exp $ -->
use strict;
use vars qw( $cgi $taxnum $cust_main_county $p1 $delim $expansion );
use strict;
use vars qw( $cgi $taxnum $cust_main_county $p1 $delim $expansion );
@@
-27,7
+27,8
@@
if ( $cgi->param('error') ) {
$expansion = '';
}
$expansion = '';
}
-$cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum});
+$cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum})
+ or die "cust_main_county.taxnum $taxnum not found";
die "Can't expand entry!" if $cust_main_county->getfield('county');
$p1 = popurl(1);
die "Can't expand entry!" if $cust_main_county->getfield('county');
$p1 = popurl(1);