Fatal error if self evaluation has groupment types

Created on 19 June 2024, 10 months ago
Updated 3 July 2024, 9 months ago

Problem/Motivation

We got a fatal error when going on the self evaluation canonical page if a user start the first step of the evaluation if it has groupment types, without validating next step..

Because the answer entity is created but without any self_evaluation_question value. And so when the user come back we got the fatal error.

Error : Call to a member function id() on null dans Drupal\self_evaluation\Plugin\self_evaluation\FormStepsMode\Theme->getResumptionStep() (ligne 117 de /private/var/www/usine_v2/web/modules/contrib/self_evaluation/src/Plugin/self_evaluation/FormStepsMode/Theme.php).

Proposed resolution

Check if the question stored on the answer entity is not NULL.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France flocondetoile Lyon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024