- Issue created by @mably
- Merge request !15Issue #3420837: Call to a member function getWebform() on null β (Open) created by mably
- Status changed to Needs review
5 months ago 3:16pm 14 February 2024
Maestro interactive task execution fails when the webform_workflows_element_maestro
module is activated.
Just try to execute a Maestro task from a process not linked to a webform submission.
Check if the submission object is valid in the original code below:
function webform_workflows_element_maestro_execute_title() {
$queueId = Drupal::routeMatch()->getParameter('queueid');
$submission = MaestroTransitionWebformWorkflowTask::getSubmission($queueId);
return t('Review submission: @webformTitle', [
'@webformTitle' => $submission->getWebform()->label(),
]);
}
We should return the default maestro.execute
route title if no submission is found.
BTW it looks like the queueid
parameter has been replaced by a queueid_or_token
parameter, fixed in the MR.
Needs review
1.0
Code