Project

General

Profile

Actions

Bug #443

closed

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

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
-
ruby -v:
[ruby-core:18306]

Description

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

After applying the patch:

c.checkbox_group("test", ["bar", "label for bar", false])
=> "<INPUT NAME="test" TYPE="checkbox" VALUE="bar">label for bar"
=end


Files

cgi_checkbox_group.patch (581 Bytes) cgi_checkbox_group.patch NoKarma (Arthur Schreiber), 08/15/2008 08:35 PM
Actions #1

Updated by naruse (Yui NARUSE) about 16 years ago

  • Assignee set to xibbar (Takeyuki FUJIOKA)

=begin

=end

Actions #2

Updated by xibbar (Takeyuki FUJIOKA) about 16 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

Actions

Also available in: Atom PDF

Like0
Like0Like0