bugfix
Dieser Commit ist enthalten in:
Ursprung
b8a78de4c3
Commit
2f659f4d18
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -92,7 +92,7 @@ const CustomWizard = Discourse.Model.extend({
|
|||
|
||||
if (f.type === 'dropdown') {
|
||||
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';
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ class CustomWizard::AdminController < ::ApplicationController
|
|||
|
||||
if f["type"] === 'dropdown'
|
||||
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'
|
||||
break
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren