1
0
Fork 0

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