Hi Daniel,
Sorry for the delay in getting back to you.
As for (1), here's the quick fix.
Look for the following line in the mod/lamslesson/lib.php:
if ($scaleid and $DB->record_exists('lamslesson', 'grade', -$scaleid)) {
And change that to:
if ($scaleid and $DB->record_exists('lamslesson', array('grade' => -$scaleid))) {
That will fix the issue.
As for (2), I'm still working on this. However, this does not affect any functionality. It's just that I want to create a button on this page to validate the settings with the LAMS server, but with the new Moodle2 API, I still need to figure it out.
Let me know if you have any other issues with this.
Thanks,
Ernie
Posted by Ernie Ghiglione