~singpolyma/sgx-jmp

a0bb2b95a26784aa54bf9cfbbf5a80f2fcc3ff12 — Stephen Paul Weber 3 years ago 3c79805
Set execting status properly
1 files changed, 5 insertions(+), 1 deletions(-)

M lib/registration.rb
M lib/registration.rb => lib/registration.rb +5 -1
@@ 45,7 45,8 @@ class Registration

		def initialize(iq, customer, tel)
			@reply = iq.reply
			reply.allowed_actions = [:next]
			@reply.status = :executing
			@reply.allowed_actions = [:next]

			@customer = customer
			@tel = tel


@@ 198,6 199,7 @@ class Registration
				@tel = tel

				@reply = iq.reply
				@reply.status = :executing
				@reply.allowed_actions = [:next]
				@reply.note_type = :info
				@reply.note_text = "#{oob.desc}: #{oob.url}"


@@ 274,6 276,7 @@ class Registration
				def declined
					reply = @iq.reply
					reply_oob = decline_oob(reply)
					reply.status = :executing
					reply.allowed_actions = [:next]
					reply.note_type = :error
					reply.note_text = "#{reply_oob.desc}: #{reply_oob.url}"


@@ 300,6 303,7 @@ class Registration
				@customer = customer
				@tel = tel
				@reply = iq.reply
				@reply.status = :executing
				@reply.allowed_actions = [:next]
				@form = @reply.form
				@form.type = :form