Bug fix in Importing/Exporting Test in GIFT Format

Third party modules, patches, bugfixes
Post Reply
User avatar
lasernic
Newbie
Posts: 5
Joined: Tue Oct 07, 2014 11:15 am
Version: forma.lms 1.2

Bug fix in Importing/Exporting Test in GIFT Format

Post by lasernic » 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!
Attachments
GIFTformat-catquestions-bugfixed.zip
(11.51 KiB) Downloaded 22 times
Saluti.

Nicola Laserra
--------------------------------
PHP Developer
Elma Informatica - http://www.elmainformatica.it
Via Vitruvio 38, Milano

User avatar
max
FormaLms Guru
Posts: 2049
Joined: Thu Mar 01, 2012 10:41 am

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

Post by max » Tue Oct 07, 2014 4:08 pm

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!
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

User avatar
alberto
FormaLms Guru
Posts: 911
Joined: Fri Mar 02, 2012 9:18 am
Contact:

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

Post by alberto » Fri Oct 31, 2014 1:18 pm

Hi Nicola, your patch has been tested and included in the upcoming Forma 1.3
Thanks for your contribution! :)
--------------------------------------------------
Become a CONTRIBUTOR

Support the project for FREE!
www.Elearnit.net

User avatar
lasernic
Newbie
Posts: 5
Joined: Tue Oct 07, 2014 11:15 am
Version: forma.lms 1.2

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

Post by lasernic » Fri Oct 31, 2014 1:31 pm

Hi Alberto,

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

:)
Saluti.

Nicola Laserra
--------------------------------
PHP Developer
Elma Informatica - http://www.elmainformatica.it
Via Vitruvio 38, Milano

Post Reply