Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
#831: Open Media Document tries to import not existing video configs (#…
Browse files Browse the repository at this point in the history
…835)

* #831: Fix config name for document upgrade path

* #831: Trigger update for already updated websites
  • Loading branch information
alexschedrov authored and ddrozdik committed Oct 27, 2017
1 parent 4498538 commit a7f6b2e
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ function openy_media_document_update_8002() {
/**
* Update default document display.
*/
function openy_media_document_update_8003()
{
function openy_media_document_update_8003() {
// Update multiple configurations.
$configs = [
'core.entity_view_display.media.video.default' => [
'core.entity_view_display.media.document.default' => [
'dependencies',
'content',
'hidden'
Expand All @@ -109,3 +108,11 @@ function openy_media_document_update_8003()
}
}
}

/**
* Update default document display.
*/
function openy_media_document_update_8004() {
// Re trigger update after fixed name.
openy_media_document_update_8003();
}

0 comments on commit a7f6b2e

Please sign in to comment.