From dee7c813e455c8f9041ab93d74eb21699d0f1724 Mon Sep 17 00:00:00 2001 From: ruzniaievdm Date: Fri, 12 Jan 2024 10:37:56 +0200 Subject: [PATCH] fix: [AXIMST-368] Add Unit types (#2493) --- .../contentstore/xblock_storage_handlers/view_handlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py b/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py index eb79181c4659..b3a8a091bcc4 100644 --- a/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py +++ b/cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py @@ -48,6 +48,7 @@ from openedx.core.djangoapps.video_config.toggles import PUBLIC_VIDEO_SHARE from openedx.core.lib.gating import api as gating_api from openedx.core.lib.cache_utils import request_cached +from openedx.core.lib.xblock_utils import get_icon from openedx.core.toggles import ENTRANCE_EXAMS from xmodule.course_block import DEFAULT_START_DATE from xmodule.modulestore import EdxJSONEncoder, ModuleStoreEnum @@ -1090,6 +1091,7 @@ def create_xblock_info( # lint-amnesty, pylint: disable=too-many-statements "group_access": xblock.group_access, "user_partitions": user_partitions, "show_correctness": xblock.show_correctness, + "xblock_type": get_icon(xblock), } )