Skip to content

Commit a5390f7

Browse files
committed
MOBILE-4690 quiz: Do not return an error when unit on input is required
1 parent ef998d0 commit a5390f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/addons/qtype/numerical/services/handlers/numerical.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ export class AddonQtypeNumericalHandlerService implements CoreQuestionHandler {
238238
if (question.parsedSettings.unitdisplay === AddonQtypeNumericalHandlerService.UNITINPUT &&
239239
question.parsedSettings.unitgradingtype === AddonQtypeNumericalHandlerService.UNITGRADED &&
240240
!this.isValidValue(unit)) {
241-
return Translate.instant('addon.qtype_numerical.invalidnumber');
241+
// 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;
242244
}
243245

244246
return;

0 commit comments

Comments
 (0)