File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
openedx/core/djangoapps/content_libraries/api Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ def delete_container(
369
369
library_key = container_key .lib_key
370
370
container = _get_container_from_key (container_key )
371
371
372
+ affected_containers = get_containers_contains_item (container_key )
372
373
affected_collections = authoring_api .get_entity_collections (
373
374
container .publishable_entity .learning_package_id ,
374
375
container .key ,
@@ -395,6 +396,14 @@ def delete_container(
395
396
background = True ,
396
397
)
397
398
)
399
+ # Send events related to the containers that contains the updated container.
400
+ # This is to update the children display names used in the section/subsection previews.
401
+ for affected_container in affected_containers :
402
+ LIBRARY_CONTAINER_UPDATED .send_event (
403
+ library_container = LibraryContainerData (
404
+ container_key = affected_container .container_key ,
405
+ )
406
+ )
398
407
399
408
400
409
def restore_container (container_key : LibraryContainerLocator ) -> None :
You can’t perform that action at this time.
0 commit comments