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

Replace question with a copy: house the copy in the current project? #348

Closed
chrismgraham opened this issue Feb 8, 2017 · 2 comments
Closed

Comments

@chrismgraham
Copy link
Contributor

When using the "replace this question with a copy" button, my (naive?) expectation was that it would be created in the current project (i.e. the one that the exam is in), rather than the question's original location. The motivation for creating a copy at this point seems most likely to be that the question needs to be customised for use on the exam.

@christianp
Copy link
Member

Yep, that sounds like a bug.

@christianp
Copy link
Member

To fix this: in editor/static/js/exam/edit.js, change the request made in replaceWithCopy to specify the current exam's project. It looks like the CopyEditorItemForm has a project field, that will take the PK of a project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants