0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00
Dieser Commit ist enthalten in:
Angus McLeod 2018-06-22 00:03:29 +10:00
Ursprung 0dab4f4964
Commit 72810b755a

Datei anzeigen

@ -126,7 +126,7 @@ class CustomWizard::Builder
params[:key] = field_template['key'] if field_template['key'] params[:key] = field_template['key'] if field_template['key']
## Load previously submitted values ## Load previously submitted values
if @submissions.last && @wizard.unfinished? if @submissions.last && !@submissions.last.key?("submitted_at")
submission = @submissions.last submission = @submissions.last
params[:value] = submission[field_template['id']] if submission[field_template['id']] params[:value] = submission[field_template['id']] if submission[field_template['id']]
end end