Skip to content

Commit aaf6ac7

Browse files
committed
revert: "feat: prompt to link when pasting from library (WIP)"
This reverts commit e5fb626.
1 parent efcd136 commit aaf6ac7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cms/djangoapps/contentstore/helpers.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
from cms.djangoapps.models.settings.course_grading import CourseGradingModel
2525
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
26-
from openedx.core.djangoapps.content_libraries.sync import is_valid_upstream
2726
import openedx.core.djangoapps.content_staging.api as content_staging_api
2827
import openedx.core.djangoapps.content_tagging.api as content_tagging_api
2928

@@ -294,6 +293,7 @@ def import_staged_content_from_user_clipboard(parent_key: UsageKey, request) ->
294293
staged_content_id=user_clipboard.content.id,
295294
static_files=static_files,
296295
)
296+
297297
return new_xblock, notices
298298

299299

@@ -375,12 +375,6 @@ def _import_xml_node_to_parent(
375375
if copied_from_block:
376376
# Store a reference to where this block was copied from, in the 'copied_from_block' field (AuthoringMixin)
377377
temp_xblock.copied_from_block = copied_from_block
378-
copied_from_key = UsageKey.from_string(copied_from_block)
379-
if is_valid_upstream(copied_from_key):
380-
upstream_link_requested = lambda: True # @@TODO ask user
381-
if upstream_link_requested():
382-
temp_xblock.assign_upstream(copied_from_key, user_id)
383-
384378
# Save the XBlock into modulestore. We need to save the block and its parent for this to work:
385379
new_xblock = store.update_item(temp_xblock, user_id, allow_not_found=True)
386380
parent_xblock.children.append(new_xblock.location)

0 commit comments

Comments
 (0)