Closed Bug 353053 Opened 18 years ago Closed 14 years ago

Hard-coded charts (specialchart) should be able to add more than one chart.

Categories

(Bugzilla :: Query/Bug List, defect)

2.23
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bugreport, Unassigned)

References

Details

Currently, all the hard-coded charts (the non-boolean stuff) are stuffed into @specialchart and eventually transformed into boolean charts for normal processing using... # now we take our special chart and stuff it into the form hash my $chart = -1; my $row = 0; foreach my $ref (@specialchart) { my $col = 0; while (@$ref) { $params->param("field$chart-$row-$col", shift(@$ref)); $params->param("type$chart-$row-$col", shift(@$ref)); $params->param("value$chart-$row-$col", shift(@$ref)); if ($debug) { push(@debugdata, "$row-$col = " . $params->param("field$chart-$row-$col") . ' | ' . $params->param("type$chart-$row-$col") . ' | ' . $params->param("value$chart-$row-$col") . ' *'); } $col++; } $row++; } While all of the charts are AND'd together, that prevents these from using negation properly as these would be in a single chart. Note that this means that the specialcharts probably want to count DOWN from -1 and we want to change for ($chart=-1 ; $chart < 0 || $params->param("field$chart-0-0") ; $chart++) { $chartid = $chart >= 0 ? $chart : ""; so that it can handle negative numbered charts other than the single -1 value.
I'm actually going to remove the whole concept of charts soon, so this won't be necessary.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.