Skip to content

Commit bf49a1e

Browse files
marslanabdulraufblarghmatey
authored andcommitted
fix: video_config runtime service added when loading for xBlock
(cherry picked from commit 0acc230)
1 parent 1d4e401 commit bf49a1e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cms/djangoapps/contentstore/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from opaque_keys import InvalidKeyError
2828
from opaque_keys.edx.keys import CourseKey, UsageKey, UsageKeyV2
2929
from opaque_keys.edx.locator import BlockUsageLocator, LibraryContainerLocator, LibraryLocator
30+
from openedx.core.djangoapps.video_config.services import VideoConfigService
3031
from openedx_events.content_authoring.data import DuplicatedXBlockData
3132
from openedx_events.content_authoring.signals import XBLOCK_DUPLICATED
3233
from openedx_events.learning.data import CourseNotificationData
@@ -1314,7 +1315,8 @@ def load_services_for_studio(runtime, user):
13141315
"settings": SettingsService(),
13151316
"lti-configuration": ConfigurationService(CourseAllowPIISharingInLTIFlag),
13161317
"teams_configuration": TeamsConfigurationService(),
1317-
"library_tools": LegacyLibraryToolsService(modulestore(), user.id)
1318+
"library_tools": LegacyLibraryToolsService(modulestore(), user.id),
1319+
"video_config": VideoConfigService(),
13181320
}
13191321

13201322
runtime._services.update(services) # lint-amnesty, pylint: disable=protected-access

0 commit comments

Comments
 (0)