openedx / openedx/openedx-platform

Duplicating units or subsections with units that contain randomized content blocks does not duplicate the contents of the randomized content blocks successfully

Open
#36,544 8 comments 1 reaction 2 assignees View on GitHub

@Faraz32123 is already working on this.

Since Apr 21, 2025.

bug help wanted release testing
Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

Duplicating units or subsections with units that contain randomized content blocks does not duplicate the contents of the randomized content blocks successfully

In our Stage & Prod environment, We are facing this issue while duplicating units/subsections that has randomized content blocks.
Error is ⚠️ There are no problems in the specified library of type any. Select another problem type.

Image

Steps to repro:

  • Go to a course outline in Studio.
  • Add a unit to some subsection.
  • Add a randomized content block and select a library that you know has content other than a text component in it.
  • Go back to the course outline in Studio.
  • Click on the three dots next to the unit you just created.
  • Select “Duplicate”.
  • See a new unit appear beneath yours, with a title like “Duplicate of ‘{Your Unit’s Display Name Here}'“.
  • Click to view the duplicated unit.

Expected behavior
The duplicated unit will match the unit that it came from.

Actual behavior
The duplicated unit has the randomized content block, but it says “There are no problems in the specified library of type any. Select another problem type.” Seems like it can’t find the source library.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.