Set execting status properly

Stephen Paul Weber created

Change summary

lib/registration.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Detailed changes

lib/registration.rb 🔗

@@ -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