Merge pull request #1908 from dpalou/MOBILE-2966
MOBILE-2966 quiz: Fix multichoice question broken due to clear optionmain
commit
e63b1ff8ab
|
@ -135,8 +135,8 @@
|
|||
</ion-item>
|
||||
<ion-item>
|
||||
<a ion-button block icon-end [href]="moduleUrl" core-link>
|
||||
<ion-icon name="open"></ion-icon>
|
||||
{{ 'core.openinbrowser' | translate }}
|
||||
<ion-icon name="open"></ion-icon>
|
||||
</a>
|
||||
</ion-item>
|
||||
</ion-card>
|
||||
|
|
|
@ -461,6 +461,11 @@ export class CoreQuestionBaseComponent {
|
|||
},
|
||||
parent = element.parentElement;
|
||||
|
||||
if (option.value == '-1') {
|
||||
// It's the clear choice option, ignore it.
|
||||
continue;
|
||||
}
|
||||
|
||||
this.question.optionsName = option.name;
|
||||
|
||||
this.question.disabled = this.question.disabled && element.disabled;
|
||||
|
|
Loading…
Reference in New Issue