Fixed not loaded ticket stats on object reload.
This commit is contained in:
parent
e11f82f7d2
commit
df6c2d1132
1 changed files with 6 additions and 3 deletions
|
@ -14,12 +14,15 @@ class App.TicketStats extends App.Controller
|
|||
|
||||
# subscribe and reload data / fetch new data if triggered
|
||||
if @user
|
||||
@subscribeId = App.User.full( @user.id, @load, false, true )
|
||||
@subscribeIdUser = App.User.full( @user.id, @load, false, true )
|
||||
else if @organization
|
||||
@subscribeId = App.Organization.full( @organization.id, @load, false, true )
|
||||
@subscribeIdOrganization = App.Organization.full( @organization.id, @load, false, true )
|
||||
|
||||
release: =>
|
||||
App.User.unsubscribe(@subscribeId)
|
||||
if @subscribeIdUser
|
||||
App.User.unsubscribe(@subscribeIdUser)
|
||||
if @subscribeIdOrganization
|
||||
App.Organization.unsubscribe(@subscribeIdOrganization)
|
||||
|
||||
load: (object) =>
|
||||
if @organization
|
||||
|
|
Loading…
Reference in a new issue