Fixed issue #838 - Disabled macros are still shown in ticket screen.

This commit is contained in:
Martin Edenhofer 2017-03-14 12:31:36 +01:00
parent 2e130fb0c6
commit 4ec5993f89

View file

@ -34,7 +34,7 @@ class App.TicketZoomAttributeBar extends App.Controller
if @resetButton.get(0) && !@resetButton.hasClass('hide')
resetButtonShown = true
macros = App.Macro.all()
macros = App.Macro.findAllByAttribute('active', true)
@macroLastUpdated = App.Macro.lastUpdatedAt()
if _.isEmpty(macros) || !@permissionCheck('ticket.agent')