- Issue created by @johnv
- Status changed to Fixed
10 months ago 11:48am 25 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.
After logging in as a user with a Workflow field on the user fields, the following error appears:
Error: Call to a member function getTransition() on null in Drupal\workflow\Form\WorkflowTransitionForm::getDefaultTransition() (line 93 of modules\workflow\src\Form\WorkflowTransitionForm.php).
- add a field to the user data
- add the field as a block to the user page
- log in as that user.
- since the user has not that field filled in the following line, the error is set.
$entity->{$field_name}[0]->getTransition()
Add extra test in above-mentioned line.
Fixed
1.8
Code
Automatically closed - issue fixed for 2 weeks with no activity.