Skip Menu |
 

This queue is for tickets about the HTTP-Recorder CPAN distribution.

Report information
The Basics
Id: 6646
Status: resolved
Priority: 0/
Queue: HTTP-Recorder

People
Owner: leira [...] cpan.org
Requestors: alex [...] kapranoff.ru
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.03_01
Fixed in: (no value)

Attachments


Subject: No need to set hidden fields to their values
Download (untitled) / with headers
text/plain 116b
Avoid warnings trying to set read-only fields. And make resulting scripts smaller and cleaner. No functional change.
Download patch-rec.pm
text/x-perl 473b
--- Recorder.pm.orig Tue Mar 2 00:55:37 2004 +++ lib/HTTP/Recorder.pm Wed Jun 16 20:39:48 2004 @@ -437,7 +438,8 @@ $attrs->{type} =~ m/submit/i) { $formfield = ("$self->{prefix}-form-". $formnumber."-submit-".$attrs->{name}); - } elsif ($attrs->{name}) { + } elsif ($attrs->{name} && + (!$attrs->{type} || $attrs->{type} !~ m/hidden/i)) { $formfield = ("$self->{prefix}-form-". $formnumber."-".$attrs->{name}); }


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.