Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
Revert "FIX: reset step progress on wizard skip"
This reverts commit 0d2f3d1cb5
.
Dieser Commit ist enthalten in:
Ursprung
0d2f3d1cb5
Commit
bfa190e98b
2 geänderte Dateien mit 1 neuen und 6 gelöschten Zeilen
|
@ -69,7 +69,6 @@ class CustomWizard::WizardController < ::ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
submission.remove if submission.present?
|
submission.remove if submission.present?
|
||||||
wizard.cleanup!
|
|
||||||
end
|
end
|
||||||
|
|
||||||
render json: result
|
render json: result
|
||||||
|
|
|
@ -286,15 +286,11 @@ class CustomWizard::Wizard
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def cleanup!
|
def final_cleanup!
|
||||||
if id == user.custom_fields['redirect_to_wizard']
|
if id == user.custom_fields['redirect_to_wizard']
|
||||||
user.custom_fields.delete('redirect_to_wizard')
|
user.custom_fields.delete('redirect_to_wizard')
|
||||||
user.save_custom_fields(true)
|
user.save_custom_fields(true)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def final_cleanup!
|
|
||||||
cleanup!
|
|
||||||
|
|
||||||
if current_submission.present?
|
if current_submission.present?
|
||||||
current_submission.submitted_at = Time.now.iso8601
|
current_submission.submitted_at = Time.now.iso8601
|
||||||
|
|
Laden …
In neuem Issue referenzieren