Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
302
Merge Requests
302
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b55eafe3
Unverified
Commit
b55eafe3
authored
Sep 29, 2020
by
larowlan
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3173437
by anmolgoyal74: Repeative 'or' word in FieldOptionTranslation.php
parent
f90141df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/modules/field/src/Plugin/migrate/process/d6/FieldOptionTranslation.php
.../src/Plugin/migrate/process/d6/FieldOptionTranslation.php
+1
-1
No files found.
core/modules/field/src/Plugin/migrate/process/d6/FieldOptionTranslation.php
View file @
b55eafe3
...
@@ -40,7 +40,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
...
@@ -40,7 +40,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
$i
=
0
;
$i
=
0
;
foreach
(
$list
as
$allowed_value
)
{
foreach
(
$list
as
$allowed_value
)
{
// Get the key for this allowed value which may be a key|label pair
// Get the key for this allowed value which may be a key|label pair
// or
or
just key.
// or just key.
$value
=
explode
(
"|"
,
$allowed_value
);
$value
=
explode
(
"|"
,
$allowed_value
);
if
(
isset
(
$value
[
0
])
&&
(
$value
[
0
]
==
$option
))
{
if
(
isset
(
$value
[
0
])
&&
(
$value
[
0
]
==
$option
))
{
$allowed_values
=
[
'label'
=>
$row
->
getSourceProperty
(
'translation'
)];
$allowed_values
=
[
'label'
=>
$row
->
getSourceProperty
(
'translation'
)];
...
...
larowlan
@larowlan
mentioned in commit
c616ff13
·
Sep 29, 2020
mentioned in commit
c616ff13
mentioned in commit c616ff1365491593b8b9d5139836d4feb10a8c6e
Toggle commit list
larowlan
@larowlan
mentioned in commit
8bd5f269
·
Sep 29, 2020
mentioned in commit
8bd5f269
mentioned in commit 8bd5f26926d8c639e33cc9e97950088c15c4d81a
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment