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) => buildScreen: (params) =>
if !params.ticket_id && !params.article_id if !params.ticket_id && !params.article_id
if !_.isEmpty(params.customer_id)
@render(options: { customer_id: params.customer_id }) @render(options: { customer_id: params.customer_id })
return return
@render()
return
# fetch split ticket data # fetch split ticket data
@ajax( @ajax(

View file

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