0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 15:21:11 +02:00

Update group validation

Dieser Commit ist enthalten in:
Angus McLeod 2020-03-24 21:45:28 +11:00
Ursprung ab1763545b
Commit f7c1185644

Datei anzeigen

@ -228,6 +228,7 @@ export default {
'user-selector',
'text-only',
'composer',
'category',
'group'
];
@ -257,12 +258,10 @@ export default {
if (type === 'checkbox') {
valid = val;
} else if (type === 'category') {
valid = val && val.toString().length > 0;
} else if (type === 'upload') {
valid = val && val.id > 0;
} else if (StandardFieldValidation.indexOf(type) > -1) {
valid = val && val.length > 0;
valid = val && val.toString().length > 0;
}
}