Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal editor asset selection can cause orphaned courseassets #2348

Closed
dancgray opened this issue May 24, 2019 · 0 comments
Closed

Modal editor asset selection can cause orphaned courseassets #2348

dancgray opened this issue May 24, 2019 · 0 comments
Labels
Milestone

Comments

@dancgray
Copy link
Member

Expected Behaviour

courseassets collection for a given course should accurately reflect the assets used in the course,contentobject etc JSON.

Actual Behaviour

Selecting an asset in the item modal widow and then canceling leaves the courseasset record resulting in unwanted assets being included in publish and export zip.

Steps to Reproduce

  1. Add an accordion component to a course
  2. add an item and select an asset
  3. courseasset record is created in DB
  4. In the item modal window click cancel
  5. courseasset record is not removed from DB even though the accordion component has not selected asset.

Versions

  • Authoring Tool Version: v0.8.1
  • Framework Version: v2.5
  • Node.js Version: n/a
  • MongoDB Version: n/a
  • Operating System: n/a
  • Browser: n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants