Subject: | tabulate does not stringify objects before passing them to HTML::QuickTable |
I've run into this issue in version 0.11 when calling tabulate on rows from a table containing a time stamp field. I have the field inflated to Time::Piece. Maypole::Plugin::QuickTable passes it as a Time::Piece object to HTML::QuickTable, but it never gets stringified -- it's outputted as an empty string. A suggested fix is the following, in _tabulate on line 144:
my $data = [ map { $self->maybe_link_view( ''.$_ ) }
Changing $_ to ''.$_ ensures each cell of the table will be stringified before the data is passed to HTML::QuickTable.
This is arguably a bug with HTML::QuickTable rather than Maypole::Plugin::QuickTable. The HTML::QuickTable docs don't mention the possibility of passing references to render() as cell contents, and all the examples contain strings. But the fact is that it doesn't stringify object references, and it might be easier to incorporate the fix in this module rather than making HTML::QuickTable's render function even more complex.
Dave