Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workflow
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
workflow
Commits
42705cd8
Commit
42705cd8
authored
3 months ago
by
John Voskuilen
Browse files
Options
Downloads
Patches
Plain Diff
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
3 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Entity/WorkflowTransition.php
+4
-2
4 additions, 2 deletions
src/Entity/WorkflowTransition.php
with
4 additions
and
2 deletions
src/Entity/WorkflowTransition.php
+
4
−
2
View file @
42705cd8
...
...
@@ -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
%
sid
1
to
%sid2)'
)
;
$message
=
"
Attempt to go to nonexistent transition (from
$from_
sid
to
$to_sid
)"
;
$this
->
logError
(
$message
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment