Oops my bad, I have used the wrong component
$options->correctfeedback = $this->import_or_save_files($question->correctfeedback,
$context, 'qtype_multichoiceset', 'correctfeedback', $question->id);
$options->correctfeedbackformat = $question->correctfeedback['format'];
$options->incorrectfeedback = $this->import_or_save_files($question->incorrectfeedback,
$context, 'qtype_multichoiceset', 'incorrectfeedback', $question->id);
the component should be 'question' not 'qtype_multichoiceset'
Tim, what do you suggest to fix the problem in the most "elegant" and user friendly way ?
- simply correct the component in the code to use 'question', but existing all or nothing questions will be broken, can I add an upgrade step to move files to the new component ?
- add a renderer to multichoiceset with a customized combined_feedback function and continue to use the qtype_multichoiceset component ?
- some other way ...