Page 1 of 1

Bug fix in Importing/Exporting Test in GIFT Format

Posted: Tue Oct 07, 2014 4:01 pm
by lasernic
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!

Re: Bug fix in Importing/Exporting Test in GIFT Format

Posted: Tue Oct 07, 2014 4:08 pm
by max
Hi Nicola,
welcome onboard and thanks for your precious contribution to the community!

Our dev team will take a look at your patch and likely include it in the upcoming new release.

Thanks again!

Re: Bug fix in Importing/Exporting Test in GIFT Format

Posted: Fri Oct 31, 2014 1:18 pm
by alberto
Hi Nicola, your patch has been tested and included in the upcoming Forma 1.3
Thanks for your contribution! :)

Re: Bug fix in Importing/Exporting Test in GIFT Format

Posted: Fri Oct 31, 2014 1:31 pm
by lasernic
Hi Alberto,

You are more than welcome, I'm glad I could help.

:)