Return ticket data on form submission (#584)

Form controller will return ticket id and number on success, so this data can
be displayed on the calling page.
This commit is contained in:
olivergrahl 2017-01-09 13:45:22 +01:00 committed by Martin Edenhofer
parent 72cef05b9e
commit 54f3e2064c

View file

@ -112,7 +112,12 @@ class FormController < ApplicationController
UserInfo.current_user_id = 1
result = {}
result = {
ticket: {
id: ticket.id,
number: ticket.number
}
}
render json: result, status: :ok
end