From a0bb2b95a26784aa54bf9cfbbf5a80f2fcc3ff12 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 24 May 2021 14:38:21 -0500 Subject: [PATCH] Set execting status properly --- lib/registration.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/registration.rb b/lib/registration.rb index 6bb8709..4be0ded 100644 --- a/lib/registration.rb +++ b/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 -- 2.38.5