itamart / moodle-mod_dataform

The Dataform is an enhanced counterpart of the standard Database activity module
17 stars 19 forks source link

Comments don't work #2

Closed zfrankz closed 10 years ago

zfrankz commented 11 years ago

Hello, I am having an issue when I try to write a comment. The reference on my view is ##comments## and I tried with ##comments:inline## too and same error. The error is a pop-up window telling me "dataform/invaliddataform" and the comment is not submitted.

I checked the availability of posting comments in my platflorm and it is enabled.

Any suggestions??

Thank you very much. This mod is awesome!

zfrankz commented 11 years ago

Looking for a solution I've tried with previous versions of moodle (2.4 - 2.3) and the problem persists.

Inside the code, I found the sentence whose is showing this pop-up window. In mod_class.php, line 91 ... } else if ($id) { if (!$this->cm = get_coursemodule_from_id('dataform', $id)) { throw new moodle_exception('invaliddataform', 'dataform', null, null, "Cm id: $id"); } ... }

EDIT:

I've just noticed that $id has an invalid value when posting a comment. I tried to add before the if sentence $id++; only just before I push the post comment button and it works!!! It seems the calling it's not right but I'm freaking out trying to find that calling!!!

itamart commented 10 years ago

Closing for lack of activity.