Fixed issue with multible new issues.
This commit is contained in:
parent
3b586cb018
commit
04cb8408c0
1 changed files with 5 additions and 3 deletions
|
@ -210,7 +210,9 @@ class App.TicketCreate extends App.Controller
|
||||||
|
|
||||||
userNew: (e) =>
|
userNew: (e) =>
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
new UserNew( type: @type )
|
new UserNew(
|
||||||
|
create_screen: @
|
||||||
|
)
|
||||||
|
|
||||||
cancel: ->
|
cancel: ->
|
||||||
@navigate '#'
|
@navigate '#'
|
||||||
|
@ -347,8 +349,8 @@ class UserNew extends App.ControllerModal
|
||||||
# force to reload object
|
# force to reload object
|
||||||
callbackReload = (user) ->
|
callbackReload = (user) ->
|
||||||
realname = user.displayName()
|
realname = user.displayName()
|
||||||
$('#create_' + ui.type + '_' + ui.id + '_customer_id').val( user.id )
|
ui.create_screen.el.find('[name=customer_id]').val( user.id )
|
||||||
$('#create_' + ui.type + '_' + ui.id + '_customer_id_autocompletion').val( realname )
|
ui.create_screen.el.find('[name=customer_id_autocompletion]').val( realname )
|
||||||
|
|
||||||
# start customer info controller
|
# start customer info controller
|
||||||
ui.userInfo( user_id: user.id )
|
ui.userInfo( user_id: user.id )
|
||||||
|
|
Loading…
Reference in a new issue