0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00
Dieser Commit ist enthalten in:
Angus McLeod 2017-11-07 14:28:26 +08:00
Ursprung b8a78de4c3
Commit 2f659f4d18
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -92,7 +92,7 @@ const CustomWizard = Discourse.Model.extend({
if (f.type === 'dropdown') { if (f.type === 'dropdown') {
const choices = f.choices; const choices = f.choices;
if ((!choices || choices.length < 1) && !f.choices_key && !f.choices_categories) { if ((!choices || choices.length < 1) && !f.choices_key && !f.choices_preset) {
error = 'field.need_choices'; error = 'field.need_choices';
return; return;
} }

Datei anzeigen

@ -55,7 +55,7 @@ class CustomWizard::AdminController < ::ApplicationController
if f["type"] === 'dropdown' if f["type"] === 'dropdown'
choices = f["choices"] choices = f["choices"]
if (!choices || choices.length < 1) && !f["choices_key"] && !f["choices_categories"] if (!choices || choices.length < 1) && !f["choices_key"] && !f["choices_preset"]
error = 'field.need_choices' error = 'field.need_choices'
break break
end end