edesiocs / ingatan

Automatically exported from code.google.com/p/ingatan
Other
0 stars 0 forks source link

Answer fields must be contextualised after pasting. #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open library manager, create flexi-question, create a label-the-picture 
answer field. Set a picture to the field.
2. Copy the answer field and paste it into a flexi question of another library 
(answer text area).
3. Observe that the answer field is now in quiz mode, and the 'set image' 
button is no longer visible.

What is the expected output? What do you see instead?
One would expect the answer field to remain in the edit context... because it 
is in the edit context. When pasting data, the destination text field must be 
traversed and any answer field must be set to edit context (paste does not 
occur in quiz context).

This does not apply to GeneralRichTextTransferHandler, only 
FlexiQuestionContainer.RichTextTransferHandler.

Check to see if this applies for copy/paste of questions.

You can trigger contextualisation by opening another library and then returning 
to the library with the label-the-picture answer field. It will now be in edit 
context.

Original issue reported on code.google.com by tom.eve...@gmail.com on 26 Jul 2010 at 11:34

GoogleCodeExporter commented 9 years ago
Fixed in revision 1fb3e2eb75.

Added 'contextualiseAnswerFields' method call at the end of the importData 
method for the FlexiQuestionContainer.RichTextTransferHandler class. This 
method was already part of the FlexiQuestionContainer class.

Original comment by tom.eve...@gmail.com on 27 Jul 2010 at 5:30