Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
simple_sitemap
Commits
79e50348
Commit
79e50348
authored
Dec 26, 2016
by
Pawel G
Browse files
Issue
#2826684
by toni4i, tuutti: Error When Performing Updates from 2.6 to 2.7
parent
fc169cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
simple_sitemap.install
View file @
79e50348
...
...
@@ -211,7 +211,9 @@ function simple_sitemap_update_8202() {
function
simple_sitemap_update_8203
()
{
$old_config
=
$config
=
\
Drupal
::
config
(
'simple_sitemap.settings'
);
foreach
([
'entity_types'
,
'custom'
]
as
$config_name
)
{
$config
=
$old_config
->
get
(
$config_name
);
if
(
!
$config
=
$old_config
->
get
(
$config_name
))
{
continue
;
}
\
Drupal
::
service
(
'config.factory'
)
->
getEditable
(
"simple_sitemap.
$config_name
"
)
->
setData
(
$config
)
->
save
();
}
...
...
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