Associate multiple assignments with the same item gradebook fails
Description
incorporates
Activity

Hudson CI Server October 27, 2015 at 9:14 PM
SUCCESS: Integrated in sakai-10-java-1.7 #236 (See http://builds.sakaiproject.org:8080/job/sakai-10-java-1.7/236/)
- Associate multiple assignments with same gradebook
- Disassociating and re-associating gradebook item causes grade inflation (matthew@longsight.com: rev 321629)

Alexandre Ballesté Crevillén March 17, 2015 at 8:06 AM
Work as expected

Angel Nueda Lozano March 16, 2015 at 4:16 AM
Hi Alex,
The correct behaviour is, in the last step, when we edit the 'Assign2' assignment the option 'Add it to the Gradebook' shouldn't be showed because there exists now a gradebook item named 'Assign2' (associated with 'Assign1' and 'Assign2) and if we Added it to the Gradebook it would produce an error.
Thank you,
Angel

Alexandre Ballesté Crevillén March 12, 2015 at 7:49 AM
Angel, not sure what I have to see here after once solution is applied. In last step I tried to save directly and it saves, and also unselecting the gradebook item, then I see an alert saying that I must select a gradebook item. Is this the expected behavior?
Thanks
Steps to reproduce it:
Create an assignment (name Assign1) and Add it to the Gradebook
Create an assignment (name Assign2) and Associate it to Assign1
Now, we have the gradebook item Assign2 associated with (Assign1 and Assign2)
Edit the assignment Assign2 and Add it to the Gradebook
And error is produced because there already exists the gradebook item Assign2.