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

Owner: pause [...]
Requestors: john_mcgeechan [...]
Cc: pause [...]

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

Subject: Hidden field logic changed
Download (untitled) / with headers
text/plain 700b
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
Download (untitled) / with headers
text/plain 501b
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); } }}}}}}}}}}}}

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to