]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5457 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Mar 2023 13:53:29 +0000 (14:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Mar 2023 13:53:29 +0000 (14:53 +0100)
app/Fields/FluidbookLinkEditor/WebvideoService.php
app/Fluidbook/Links.php

index 2a649705f6503c36298d14597aa5e116306cc1d1..f9baf7880efda2c72a87bf6fa848b65860aedd2a 100644 (file)
@@ -17,7 +17,7 @@ class WebvideoService extends SelectFromArray
             'youtube' => 'Youtube',
             'dailymotion' => 'Dailymotion',
             'vimeo' => 'Vimeo',
-            'brightcove' => 'Vimeo',
+            'brightcove' => 'Brightcove',
         ];
     }
 }
index 1c4c593f01af536d277a7c5c29f0a51d33869575..3d134fe26c954b441eba3b3f1f9e2f0e4737f6e5 100644 (file)
@@ -222,6 +222,9 @@ class Links
     {
         foreach ($links as $k => $link) {
             if ($link['type'] == 10) {
+                if (!isset($link['video_service'])) {
+                    $links[$k]['video_service'] = $link['video_service'] = 0;
+                }
                 if (is_numeric($link['video_service'])) {
                     $links[$k]['video_service'] = self::$_webvideoServicesMap[$link['video_service']];
                 }