projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1779ed
)
improve error message when splitting taxclasses and there aren't any yet, RT#11144
author
ivan
<ivan>
Wed, 9 Feb 2011 04:48:22 +0000
(
04:48
+0000)
committer
ivan
<ivan>
Wed, 9 Feb 2011 04:48:22 +0000
(
04:48
+0000)
httemplate/edit/process/cust_main_county-expand.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_main_county-expand.cgi
b/httemplate/edit/process/cust_main_county-expand.cgi
index
9984b08
..
a108276
100755
(executable)
--- a/
httemplate/edit/process/cust_main_county-expand.cgi
+++ b/
httemplate/edit/process/cust_main_county-expand.cgi
@@
-22,7
+22,7
@@
if ( $cgi->param('taxclass') ) {
or die dbh->errstr;
$sth->execute or die $sth->errstr;
@expansion = map $_->[0], @{$sth->fetchall_arrayref};
- die "no taxclasses - add one first" unless @expansion;#XXX better err handling
+ errorpage "No taxclasses - add one first" unless @expansion;
} else {
@expansion = split /[\n\r]{1,2}/, $cgi->param('expansion');