Commit 1a2eccfb authored by jake%acutex.net's avatar jake%acutex.net

Bug 105480 - Use the friendly name from the fielddefs table when reporting…

Bug 105480 - Use the friendly name from the fielddefs table when reporting strictvalue errors if it's available. Patch by James A. Laska <jlaska@us.ibm.com> r= justdave@syndicomm.com, jake@acutex.net
parent 7bf96883
......@@ -208,8 +208,15 @@ sub CheckFormField (\%$;\@) {
(defined($legalsRef) &&
lsearch($legalsRef, $formRef->{$fieldname})<0) ){
print "A legal $fieldname was not set; ";
print Param("browserbugmessage");
SendSQL("SELECT description FROM fielddefs WHERE name=" . SqlQuote($fieldname));
my $result = FetchOneColumn();
if ($result) {
PuntTryAgain("A legal $result was not set.");
}
else {
PuntTryAgain("A legal $fieldname was not set.");
print Param("browserbugmessage");
}
PutFooter();
exit 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment