Skip to content
Snippets Groups Projects
Commit 42705cd8 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3495308: TypeError: strtr(): Argument #1 ($string) must be of type string

parent be3126f7
No related branches found
No related tags found
No related merge requests found
Pipeline #426617 passed with warnings
......@@ -465,7 +465,9 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
/*
* Get the object and its permissions.
*/
$config_transitions = $this->getWorkflow()->getTransitionsByStateId($this->getFromSid(), $this->getToSid());
$from_sid = $this->getFromSid();
$to_sid = $this->getToSid();
$config_transitions = $this->getWorkflow()->getTransitionsByStateId($from_sid, $to_sid);
/*
* Determine if user has Access.
......@@ -477,7 +479,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
if ($result == FALSE) {
// @todo There is a watchdog error, but no UI-error. Is this OK?
$message = $this->t('Attempt to go to nonexistent transition (from %sid1 to %sid2)');
$message = "Attempt to go to nonexistent transition (from $from_sid to $to_sid)";
$this->logError($message);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment