Project

General

Profile

Bug #444

[PATCH] CGI#radio_group raises a TypeError when passing false as checked value

Added by NoKarma (Arthur Schreiber) about 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:18307]

Description

=begin
c = CGI.new("html4")
c.radio_group("test", ["bar", "label for bar", false])
=> TypeError: can't convert false into String

After applying the patch:

c.radio_group("test", ["bar", "label for bar", false])
=> "label for bar"
=end


Files

cgi_radio_group.patch (597 Bytes) cgi_radio_group.patch NoKarma (Arthur Schreiber), 08/15/2008 08:41 PM

History

#1

Updated by naruse (Yui NARUSE) almost 11 years ago

  • Assignee set to xibbar (Takeyuki FUJIOKA)

=begin

=end

#2

Updated by xibbar (Takeyuki FUJIOKA) almost 11 years ago

  • Status changed from Open to Rejected

=begin
In 1.8, this behavior is right.
But in 1.9, I think this suggestion is better.
I will commit this improvement to trunk repository.
=end

Also available in: Atom PDF