How do I process column values after retrieval, but before display in buglist.cgi?

Byron Jones glob at mozilla.com
Mon Jan 7 07:38:09 UTC 2013


Matthew Bogosian wrote:
> 1. How do I use multiple source columns to create a single output column in buglist.cgi?
> 2. How do I format values after retrieval but before display in buglist.cgi (ideally using only hooks without modifying default templates)?
something like this (untested):

sub buglist_columns {
     my ($self, $args) = @_;
     my $columns = $args->{columns};
     $columns->{'env'} = {
         name => "CONCAT(rep_platform, ' (', op_sys, ')')",
         title => 'Env',
     };
}

you'll also need to add env to 
template/en/default/hook/global/field-descs-end.none.tmpl:

[% IF in_template_var %]
   [% vars.field_descs.env = "Env" %]
[% END %]


-- 
byron - irc:glob - bugzilla.mozilla.org team -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20130107/f7b78c01/attachment.html>


More information about the developers mailing list