[Jifty-commit] r6025 - in jifty/trunk: lib/Jifty/Plugin/Chart/Renderer
Jifty commits
jifty-commit at lists.jifty.org
Wed Nov 19 12:29:02 EST 2008
Author: sartak
Date: Wed Nov 19 12:29:01 2008
New Revision: 6025
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/GoogleViz.pm
Log:
r75809 at onn: sartak | 2008-11-19 12:28:37 -0500
If the column isn't known, throw an error
Modified: jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/GoogleViz.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/GoogleViz.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Chart/Renderer/GoogleViz.pm Wed Nov 19 12:29:01 2008
@@ -149,11 +149,14 @@
my $row = 0;
for my $datapoint (@data) {
for my $column (keys %$datapoint) {
+ my $col = $cols->{$column}
+ or die "Invalid column id '$column'";
+
my $value = $self->encode_value(
value => $datapoint->{$column},
- column => $cols->{$column},
+ column => $col,
);
- my $cid = $cols->{$column}{index};
+ my $cid = $col->{index};
Jifty->web->out("data.setValue($row, $cid, $value);\n");
}
More information about the Jifty-commit
mailing list