We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef998d0 commit a5390f7Copy full SHA for a5390f7
src/addons/qtype/numerical/services/handlers/numerical.ts
@@ -238,7 +238,9 @@ export class AddonQtypeNumericalHandlerService implements CoreQuestionHandler {
238
if (question.parsedSettings.unitdisplay === AddonQtypeNumericalHandlerService.UNITINPUT &&
239
question.parsedSettings.unitgradingtype === AddonQtypeNumericalHandlerService.UNITGRADED &&
240
!this.isValidValue(unit)) {
241
- return Translate.instant('addon.qtype_numerical.invalidnumber');
+ // It would be great to return an error if the unit is required and not supplied.
242
+ // But in LMS this is not implemented.
243
+ return;
244
}
245
246
return;
0 commit comments