Fixed save of task state.

This commit is contained in:
Martin Edenhofer 2017-01-14 01:31:00 +01:00
parent fb64e186b5
commit d4c4f797d6
2 changed files with 6 additions and 3 deletions

View file

@ -159,8 +159,11 @@ class App.TicketCreate extends App.Controller
buildScreen: (params) =>
if !params.ticket_id && !params.article_id
if !_.isEmpty(params.customer_id)
@render(options: { customer_id: params.customer_id })
return
@render()
return
# fetch split ticket data
@ajax(

View file

@ -19,8 +19,8 @@
</div>
<div class="form-controls">
<a class="btn btn--text btn--subtle js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
<button type="submit" class="btn btn--success js-submit align-right"><%- @T( 'Create' ) %></button>
<a class="btn btn--text btn--subtle js-cancel" href="#/"><%- @T('Cancel & Go Back') %></a>
<button type="submit" class="btn btn--success js-submit align-right"><%- @T('Create') %></button>
</div>
</form>
</div>