gayu_justin has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, Iam in trouble.i am using bugzilla. so i need to sort the resolutions .on checking found that,following is the code that displaying the resolution

[% BLOCK select_resolution %] [% knum = knum + 1 %] <select name="resolution" onchange="document.changeform.knob[[% knum + %]].checked=true"> [% FOREACH r = bug.choices.resolution %] <option value="[% r FILTER html %]">[% get_resolution(r) F +ILTER html %]</option> [% END %] </select> <br> [% knum = knum + 1 %] [% END %]

But i don't know the meaning of bug.choices.resolution (ie, from where the bug.choices.resolution is coming from).please help me in this

Replies are listed 'Best First'.
Re: Need to know the meaning of bug.choices.resolution
by afoken (Chancellor) on Aug 11, 2013 at 16:07 UTC

    What you posted looks like a template written for Template::Toolkit (TT2). Try reading the TT2 documentation, it documents sorting.

    It is likely that there is an option to change the sorting in the Bugzila configuration. Perhaps you should change the Bugzilla configuration instead of changing the bugzilla code. Patches will no longer apply cleanly when you change the code.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)