Moved to new log backend.
This commit is contained in:
parent
253952cc3e
commit
d219564ae1
1 changed files with 6 additions and 5 deletions
|
@ -71,7 +71,7 @@ class Index extends App.Controller
|
||||||
t.customer_id_autocompletion = a.from
|
t.customer_id_autocompletion = a.from
|
||||||
t.subject = a.subject || t.title
|
t.subject = a.subject || t.title
|
||||||
t.body = a.body
|
t.body = a.body
|
||||||
@log '11111', t
|
@log 'CustomerTicketCreate', 'notice', 'created', t
|
||||||
@render( options: t )
|
@render( options: t )
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ class Index extends App.Controller
|
||||||
|
|
||||||
# get params
|
# get params
|
||||||
params = @formParam(e.target)
|
params = @formParam(e.target)
|
||||||
@log 'paramssss', params
|
@log 'CustomerTicketCreate', 'notice', 'params', params
|
||||||
|
|
||||||
# set customer id
|
# set customer id
|
||||||
params.customer_id = @Session.get('id')
|
params.customer_id = @Session.get('id')
|
||||||
|
@ -147,7 +147,7 @@ class Index extends App.Controller
|
||||||
|
|
||||||
# create ticket
|
# create ticket
|
||||||
object = new App.Ticket
|
object = new App.Ticket
|
||||||
@log 'updateAttributes', params
|
@log 'CustomerTicketCreate', 'notice', 'updateAttributes', params
|
||||||
|
|
||||||
# find sender_id
|
# find sender_id
|
||||||
sender = App.Collection.findByAttribute( 'TicketArticleSender', 'name', 'Customer' )
|
sender = App.Collection.findByAttribute( 'TicketArticleSender', 'name', 'Customer' )
|
||||||
|
@ -174,7 +174,8 @@ class Index extends App.Controller
|
||||||
|
|
||||||
# show errors in form
|
# show errors in form
|
||||||
if errors
|
if errors
|
||||||
@log 'error new', errors
|
@log 'CustomerTicketCreate', 'error', 'can not create', errors
|
||||||
|
|
||||||
@formValidate( form: e.target, errors: errors )
|
@formValidate( form: e.target, errors: errors )
|
||||||
|
|
||||||
# save ticket, create article
|
# save ticket, create article
|
||||||
|
@ -190,7 +191,7 @@ class Index extends App.Controller
|
||||||
ui.navigate '#ticket/zoom/' + this.id
|
ui.navigate '#ticket/zoom/' + this.id
|
||||||
|
|
||||||
error: ->
|
error: ->
|
||||||
ui.log 'save failed!'
|
ui.log 'CustomerTicketCreate', 'error', 'can not create'
|
||||||
ui.formEnable(e)
|
ui.formEnable(e)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue