Mycertificate - Fix for date display bug

Third party plugins, patches, bugfixes
Post Reply
User avatar
alberto
FormaLms Guru
Posts: 1134
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Mycertificate - Fix for date display bug

Post by alberto »

This patch fixes a bug with the display of course begin and copletion date in the "mycertificate" module.
When more than 1 certificate is available, the same date is displayed for all the certificates.

[File removed - find the latest version at the end of the thread]
User avatar
alberto
FormaLms Guru
Posts: 1134
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: Mycertificate - Fix for date display bug

Post by alberto »

Hi, here's an update to the mycertificate module:

#CHANGE - Add a colum to display the Name of the certificate (removes "first access" column)
#FIX - Problem with the naming of pdf files
Attachments
mycertificate.zip
(21.35 KiB) Downloaded 301 times
jasmines
Senior Boarder
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

Re: Mycertificate - Fix for date display bug

Post by jasmines »

This won't work, it return error when I try to associate a certificate to a course.
I think this fix needs to edit also \doceboLms\admin\controllers\CourseAlmsController.php about line 1057:

if(!$cert->updateCertificateCourseAssign($id_course, $_POST['certificate_assign'], $_POST['certificate_ex_assign'], $point_required))

is calling a updateCertificateCourseAssign function that has been redefined in your fixed lib.certificate.php, and it's expecting more parameters than the original.

Thanks for your help.
User avatar
alberto
FormaLms Guru
Posts: 1134
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: Mycertificate - Fix for date display bug

Post by alberto »

Fixed and added to Forma 1.0
Post Reply