Skip Menu |

This queue is for tickets about the WWW-Form CPAN distribution.

Report information
The Basics
Id: 18966
Status: resolved
Worked: 5 min
Priority: 0/
Queue: WWW-Form

People
Owner: pause [...] benschmaus.com
Requestors: john_mcgeechan [...] yahoo.co.uk
Cc: pause [...] benschmaus.com
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.16
Fixed in: (no value)



Subject: Hidden field logic changed
Hidden field logic now has to be explicitly called. Depends whether you think this is a bug or not, it broke my existing code. Basically if you are using the quick "getFormHTML" , you can be assured that the "getHiddenFieldsHTML" function will be called, and your hidden fields will get included in your form. If you are building up the form piece by piece ie using start_form, end_form etc , you need to explicitly call the "getHiddenFieldsHTML" function . In previous versions you could simply call "getFieldHTMLRow" on any field and it would build the HTML irrespective of the type (including hidden). As a rule, code changes like this should be backwards compatable... Cheers, John McGeechan
Should be fixed now judging by the code: {{{{{{{{{{{{ sub _getHiddenFieldHTMLRow { my $self = shift; my $fieldName = shift; return "<tr style=\"display:none\">\n" . "<td></td>\n" . "<td>" . $self->_getInputHTML($fieldName, "") ."</td>\n" . "</tr>\n"; } sub getFieldHTMLRow { my $self = shift; my $fieldName = shift; if ($self->_getFieldType($fieldName) eq "hidden") { return $self->_getHiddenFieldHTMLRow($fieldName); } }}}}}}}}}}}}