Error : Call to a member function getWebform() on null dans webform_workflows_element_maestro_execute_title()

Created on 12 February 2024, 9 months ago

Problem/Motivation

Maestro interactive task execution fails when the webform_workflows_element_maestro module is activated.

Steps to reproduce

Just try to execute a Maestro task from a process not linked to a webform submission.

Proposed resolution

Check if the submission object is valid here:

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(),
  ]);
}
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France mably

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024