From 72810b755ad53c54db0bdd7694df0a3bc201ac48 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 22 Jun 2018 00:03:29 +1000 Subject: [PATCH] Update check --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index e9615cb1..2302eeba 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -126,7 +126,7 @@ class CustomWizard::Builder params[:key] = field_template['key'] if field_template['key'] ## Load previously submitted values - if @submissions.last && @wizard.unfinished? + if @submissions.last && !@submissions.last.key?("submitted_at") submission = @submissions.last params[:value] = submission[field_template['id']] if submission[field_template['id']] end