Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workflow
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
workflow
Commits
e3316a5c
Commit
e3316a5c
authored
9 years ago
by
johnv
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2631040: machine_name of config_transition not always correct
parent
815c2961
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/workflow_ui/src/Form/WorkflowConfigTransitionRoleForm.php
+1
-1
1 addition, 1 deletion
...workflow_ui/src/Form/WorkflowConfigTransitionRoleForm.php
src/Entity/WorkflowConfigTransition.php
+1
-1
1 addition, 1 deletion
src/Entity/WorkflowConfigTransition.php
with
2 additions
and
2 deletions
modules/workflow_ui/src/Form/WorkflowConfigTransitionRoleForm.php
+
1
−
1
View file @
e3316a5c
...
...
@@ -105,7 +105,7 @@ class WorkflowConfigTransitionRoleForm extends WorkflowConfigTransitionFormBase
if
(
$to_state
->
isCreationState
())
{
continue
;
}
// Only
allow transitions from $from_state.
// Only allow transitions from $from_state.
if
(
$state
->
id
()
<>
$from_state
->
id
())
{
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
src/Entity/WorkflowConfigTransition.php
+
1
−
1
View file @
e3316a5c
...
...
@@ -106,7 +106,7 @@ class WorkflowConfigTransition extends ConfigEntityBase implements WorkflowConfi
// Create the machine_name. This can be used to rebuild/revert the Feature in a target system.
if
(
empty
(
$this
->
id
()))
{
$wid
=
$workflow
->
id
();
$this
->
set
(
'id'
,
implode
(
''
,
[
$wid
,
s
tr_replace
(
$wid
,
''
,
$this
->
from_sid
)
,
str
_replace
(
$wid
,
''
,
$this
->
to_sid
)]));
$this
->
set
(
'id'
,
implode
(
''
,
[
$wid
,
s
ubstr
(
$this
->
from_sid
,
str
len
(
$wid
)),
substr
(
$this
->
to_sid
,
strlen
(
$wid
)
)]));
}
$status
=
parent
::
save
();
...
...
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