Switch to side-by-side view
--- a/ForgeTracker/forgetracker/model/ticket.py +++ b/ForgeTracker/forgetracker/model/ticket.py @@ -44,10 +44,11 @@ def for_current_tracker(cls): return cls.query.get(app_config_id=c.app.config._id) - def sortable_custom_fields(self): + def sortable_custom_fields_shown_in_search(self): return [dict(sortable_name='%s_s' % field.name, label=field.label) - for field in self.custom_fields] + for field in self.custom_fields + if field.show_in_search] class TicketHistory(Snapshot):