--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -224,13 +224,10 @@
ticket_for_num[t.ticket_num] = t
# and pull them out in the order given by ticket_numbers
tickets = [ticket_for_num[tn] for tn in ticket_numbers]
+ tracker_globals = model.Globals.for_current_tracker()
return dict(tickets=tickets,
- custom_field_names=self.custom_field_names(),
+ custom_field_names=tracker_globals.custom_field_names(),
count=count, q=q, limit=limit, page=page, sort=sort, **kw)
-
- def custom_field_names(self):
- tracker_globals = model.Globals.for_current_tracker()
- return [field.label for field in tracker_globals.custom_fields]
def ordered_history(self, limit=None):
q = []