Bug fix in Importing/Exporting Test in GIFT Format
Posted: Tue Oct 07, 2014 4:01 pm
Hi everyone,
I was doing some test on Test learning object while I happened to find a bug in importing/exporting Test via GIFT format. I noticed that there was no way to import categorized questions (even if I was using the $CATEGORY modifier) nor to export categorized questions (the resulting GIFT simply didn't have the $CATEGORY modifier, even if it should).
So, please find my patch in the zip file in attachment. The archive is organized in such a manner that you can simply unzip it , copy it and paste it inside the root directory of your formalms project.
Once extracted you will find a file structure like the following:
- applLms/
---->modules/
------>question/
-------->class.question.php
-------->format.gift.php
As you can see only two files are changed. You can easily find the changes inside the code looking for my name inside the code.
Hope this can be helpful to the community!
I was doing some test on Test learning object while I happened to find a bug in importing/exporting Test via GIFT format. I noticed that there was no way to import categorized questions (even if I was using the $CATEGORY modifier) nor to export categorized questions (the resulting GIFT simply didn't have the $CATEGORY modifier, even if it should).
So, please find my patch in the zip file in attachment. The archive is organized in such a manner that you can simply unzip it , copy it and paste it inside the root directory of your formalms project.
Once extracted you will find a file structure like the following:
- applLms/
---->modules/
------>question/
-------->class.question.php
-------->format.gift.php
As you can see only two files are changed. You can easily find the changes inside the code looking for my name inside the code.
Hope this can be helpful to the community!