Bug 208699 - Move Throw{Code,Template}Error into Error.pm
r,a=justdave git-svn-id: svn://10.0.0.236/trunk@146857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -930,7 +930,7 @@ sub init {
|
||||
# chart -1 is generated by other code above, not from the user-
|
||||
# submitted form, so we'll blindly accept any values in chart -1
|
||||
if ((!$chartfields{$f}) && ($chart != -1)) {
|
||||
&::ThrowCodeError("invalid_field_name", {field => $f});
|
||||
ThrowCodeError("invalid_field_name", {field => $f});
|
||||
}
|
||||
|
||||
# This is either from the internal chart (in which case we
|
||||
@@ -964,9 +964,10 @@ sub init {
|
||||
}
|
||||
else {
|
||||
# This field and this type don't work together.
|
||||
$::vars->{'field'} = $params->param("field$chart-$row-$col");
|
||||
$::vars->{'type'} = $params->param("type$chart-$row-$col");
|
||||
&::ThrowCodeError("field_type_mismatch");
|
||||
ThrowCodeError("field_type_mismatch",
|
||||
{ field => $params->param("field$chart-$row-$col"),
|
||||
type => $params->param("type$chart-$row-$col"),
|
||||
});
|
||||
}
|
||||
}
|
||||
if (@orlist) {
|
||||
|
||||
Reference in New Issue
Block a user