Skip to content
Snippets Groups Projects

Issue #3423058 by mably: handle token use instead of numeric queue id

1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -25,6 +25,10 @@ trait MaestroWebformWorkflowsTrait {
* @return WebformSubmission
*/
public static function getSubmission($queueID) {
// We check if queueID is a token, if so, we get the corresponding id.
if (!is_numeric($queueID)) {
$queueID = MaestroEngine::getQueueIdFromToken($queueID);
}
$processID = MaestroEngine::getProcessIdFromQueueId($queueID);
$entity_id = MaestroEngine::getEntityIdentiferByUniqueID($processID, 'submission');
$submission = WebformSubmission::load($entity_id);
Loading