File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -361,13 +361,14 @@ public function buildWorkflowSelectOptions(): string
361361 foreach ($ this ->getFilteredWorkflowsArray () as $ workflow ) {
362362 $ title = $ workflow ->getTitle ();
363363 $ workflow_record_id = $ workflow ->getId ();
364- $ translated_text = $ this ->translate ($ workflow_record_id , self ::SELECTION_TEXT_LANG_MODULE );
364+ $ workflow_identifier = $ workflow ->getWorkflowId ();
365+ $ translated_text = $ this ->translate ($ workflow_identifier , self ::SELECTION_TEXT_LANG_MODULE );
365366 if (strpos ($ translated_text , 'MISSING ' ) === false ) {
366367 $ title = $ translated_text ;
367368 }
368369 // A tiny fallback to workflow identifier, if title is empty!
369370 if (empty ($ title )) {
370- $ title = $ workflow -> getWorkflowId () ;
371+ $ title = $ workflow_identifier ;
371372 }
372373 $ options [] = "<option value=' {$ workflow_record_id }'> {$ title }</option> " ;
373374 }
You can’t perform that action at this time.
0 commit comments