Closed
Bug 306695
Opened 19 years ago
Closed 19 years ago
Boolean charts forgets "0" values
Categories
(Bugzilla :: Query/Bug List, defect, P2)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: bugreport, Assigned: Wurblzap)
Details
Attachments
(1 file)
|
1.50 KB,
patch
|
LpSolit
:
review+
bugreport
:
review+
|
Details | Diff | Splinter Review |
If the value provided in a boolean chart is 0 and the user selects "edit this search" after running a query, the 0 has become blank.
| Reporter | ||
Updated•19 years ago
|
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.22
| Assignee | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Comment on attachment 205857 [details] [diff] [review] Patch looks good, but I haven't tested it yet.
| Assignee | ||
Updated•19 years ago
|
Attachment #205857 -
Flags: review? → review?(LpSolit)
Comment 3•19 years ago
|
||
Comment on attachment 205857 [details] [diff] [review] Patch > for (my $col = 0; $cgi->param("field$chart-$row-$col"); $col++) { >+ my $value = $cgi->param("value$chart-$row-$col"); >+ if (!defined($value)) { >+ $value = ''; >+ } > push(@cols, { field => $cgi->param("field$chart-$row-$col"), > type => $cgi->param("type$chart-$row-$col") || 'noop', >- value => $cgi->param("value$chart-$row-$col") || '' }); >+ value => $value }); > } This looks good, and the few tests I did work fine, but... $value is always defined here, because if it is not, you set it to an empty string. And as CGI::canonicalise_query() now keeps defined values, this means you keep *everything*, even fields which were originally undefined. Is that really what we want? IMO, if a $value is undefined, we shouldn't add it to @cols. I now fear that the URL will be even longer than what it is now. And I remember you that we already have a bug about too long URLs (Internet Explorer is limited to ~2000 characters). r=LpSolit, but I still want joel's review.
Attachment #205857 -
Flags: review?(bugreport)
Attachment #205857 -
Flags: review?(LpSolit)
Attachment #205857 -
Flags: review+
| Reporter | ||
Updated•19 years ago
|
Attachment #205857 -
Flags: review?(bugreport) → review+
Updated•19 years ago
|
Flags: approval?
Flags: approval2.22?
Updated•19 years ago
|
Flags: approval?
Flags: approval2.22?
Flags: approval2.22+
Flags: approval+
| Assignee | ||
Comment 5•19 years ago
|
||
Tip: Checking in query.cgi; /cvsroot/mozilla/webtools/bugzilla/query.cgi,v <-- query.cgi new revision: 1.159; previous revision: 1.158 done Checking in Bugzilla/CGI.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/CGI.pm,v <-- CGI.pm new revision: 1.21; previous revision: 1.20 done 2.22 branch: Checking in query.cgi; /cvsroot/mozilla/webtools/bugzilla/query.cgi,v <-- query.cgi new revision: 1.155.2.1; previous revision: 1.155 done Checking in Bugzilla/CGI.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/CGI.pm,v <-- CGI.pm new revision: 1.20.2.1; previous revision: 1.20 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•