how to remove an answer raising an error

how to remove an answer raising an error

av Luca Pedocchi -
Antall svar: 3
Hi all. A student of mine answered a question in a questionnaire with a string instead of a number. Trying to resume the questionnaire she gets this error

Exception - Attempt to assign property "number" on string

I didn't find a way to fix it. Am I missing something? As an admin I can't find a place to remove the answers and restart the questionnaire, since it hasn't been submitted yet. Does someone have a suggestion?
Grazie
              Luca
Gjennomsnittlig vurdering: -
Som svar til Luca Pedocchi

Re: how to remove an answer raising an error

av Joseph Rézeau -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av Testers Bilde av Translators

Hi Luca,

Please give your versions of Moodle, Questionnaire and PHP on your site.

Your problem may be related to this bug report: CONTRIB-9206

Som svar til Joseph Rézeau

Re: how to remove an answer raising an error

av Luca Pedocchi -
Thank you for the reply. Here they are:
- Moodle version: 4.2
- PHP version: 8.1.2.1.2.14
- Questionnaire version: 4.0.1 (Build - 2023051600) 2022092202
I'm going to have a look at the bug report.
Grazie
Luca