Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 49407
Status: rejected
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: frequency [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.0501
Fixed in: (no value)



Subject: Fieldset Legend Strangeness
Hi there: I'm forwarding this bug on behalf of a Debian user. The original text (which follows) can be found here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421660 According to the manual: To use fieldsets, specify an arrayref of "<fieldset>" names: fieldsets => [qw(account preferences contacts)] You can get a different "<legend>" tag if you specify a nested arrayref: fieldsets => [ [ account => ’Account Information’ ], [ preferences => ’Website Preferences’ ], [ contacts => ’Email and Phone Numbers’ ], ] As I read this, the first example should create fieldsets with legends "account", "preferences", "contacts", while the second should create fieldsets with the longer legend texts. However, what actually happened when I tried it, is that if I defined fieldsets using the first syntax, the legends were not displayed at all. The only way to get the legend tags added was to use the second syntax. You can also automatically create a new "fieldset" on the fly by specifying a new one: $form->field(name => ’remember_me’, fieldset => ’advanced’); This also causes the legend to be displayed, unless I do this: # This avoids it displaying a redundant label for the # OpenID fieldset. $form->fieldsets("OpenID"); $form->field(name => ’Log in with OpenID’, fieldset => ’OpenID’); It's actually good that there's a way to create a fieldset w/o a legend; I use this in ikiwiki. But the way to do it smells of a bug. :-/
While I appreciate the bug report, I am no longer accepting any bug reports that don't have patches and tests. The idea behind Open Source Software is that the COMMUNITY of developers contributes to its development.