Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
Fix multiple submissions setting
Dieser Commit ist enthalten in:
Ursprung
ded156c4dd
Commit
c40bf06953
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
|
@ -35,8 +35,7 @@ class CustomWizard::Builder
|
||||||
end
|
end
|
||||||
|
|
||||||
def build
|
def build
|
||||||
unless (@wizard.completed? && !@wizard.respond_to?(:multiple_submissions)) ||
|
unless (@wizard.completed? && !@wizard.multiple_submissions) || !@steps
|
||||||
!@steps
|
|
||||||
@steps.each do |s|
|
@steps.each do |s|
|
||||||
@wizard.append_step(s['id']) do |step|
|
@wizard.append_step(s['id']) do |step|
|
||||||
step.title = s['title'] if s['title']
|
step.title = s['title'] if s['title']
|
||||||
|
|
|
@ -71,7 +71,7 @@ end
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_completed?
|
def include_completed?
|
||||||
object.completed? && !object.respond_to?(:multiple_submissions) && !scope.current_user.admin?
|
object.completed? && !object.multiple_submissions && !scope.current_user.admin?
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_start?
|
def include_start?
|
||||||
|
|
Laden …
In neuem Issue referenzieren