Fixed issue #838 - Disabled macros are still shown in ticket screen.
This commit is contained in:
parent
2e130fb0c6
commit
4ec5993f89
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue