Closed Bug 279724 Opened 20 years ago Closed 20 years ago

No access to flag_types in show-multiple.html.tmpl

Categories

(Bugzilla :: User Interface, enhancement)

2.18
x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 204864

People

(Reporter: bkuemmer, Assigned: myk)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

There is no way to access the flag_types inside the show-multiple.html.tmpl,
bug.flag_types is not defined there.


Reproducible: Always

Steps to Reproduce:
I wanted to add the display of flag statuses into the long buglist (generated by
long_list.cgi). I tried it similar to how it's done in edit.html.tmpl, by inserting 

    [% IF bug.flag_types.size > 0 %]
        [% PROCESS "flag/list.html.tmpl"
           flag_types = bug.flag_types
           any_flags_requesteeble = bug.any_flags_requesteeble %]
    [% END %]

inside the loop over all flags in the list.

This did not work, a debug output of all keys for the bug-hash showed that
flag_types was not set.


Expected Results:  
It should be possible to access the flag information inside
show-multiple.html.tmpl to be able to add flag information to the long buglist.
This would require the flags information to be SELECTed in Bugzilla/Search.pm,
so there is *at least* the need for another DefineColumn call in buglist.cgi.

Bernd, are you interested to look into this?
Severity: normal → enhancement
Component: User Interface → Query/Bug List
OS: Windows XP → All
Hardware: PC → All
Well, I am not sure... I can have a look to try and come up with something, but
I am not really very familiar with neither the template toolkit nor SQL ;-)

Any more pointer are well appreciated.
Hmm, now that I have looked a bit into the suggestion from comment #1, I fear
that I might have been misunderstood (but then again, maybe I misunderstand
something): This is not about being able to display the Flags in the "normal"
bug list, so I would guess I wouldn't need another column in buglist.cgi (this
in itself would be another request in my opinion), I just want to show the Flags
when the user presses the "Long Format" button from a "normal" buglist.
(In reply to comment #3)

I'm sorry, I think I misunderstood you :)
You're right, I was thinking about buglist.cgi although you clearly stated that
you're talking about long_list.cgi.

Since bug 201818, long_list.cgi doesn't exist any more, but is replaced by
show_bug.cgi?format=multiple. Depending on what version you're using, updating
to the tip or applying the patch there may be of help to you.
Well, this is for a productivity bugzilla which is running 2.18, so I am a bit
hesitant to apply such a relatively large patch... (and updating to tip is out
of question).

Component: Query/Bug List → User Interface
OS: All → Windows XP
Hardware: All → PC
Version: unspecified → 2.18

*** This bug has been marked as a duplicate of 204864 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.