lml/quadbase — Issue #62: Need to block users from adding multipart questions to other multipart questions
Author: Dantemss
Created: 2012-02-24 18:42:35+00:00
State: open

The result is the uncaught exception (maybe only if one of the parts is published):

ActiveRecord::RecordInvalid (Validation failed: Changes cannot be made to a published question.{"question_setup_id"=>[nil, 15]}):
app/models/multipart_question.rb:150:in `block (2 levels) in add_parts'
app/models/multipart_question.rb:148:in `block in add_parts'
app/models/multipart_question.rb:135:in `add_parts'
app/controllers/multipart_questions_controller.rb:35:in `block in add_existing_parts'
app/controllers/multipart_questions_controller.rb:34:in `add_existing_parts'
app/middleware/flash_session_cookie_middleware.rb:20:in `call'