-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
2.3.7, 2.4.3
-
None
-
MOODLE_23_STABLE, MOODLE_24_STABLE
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.
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))
...
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!!!
Please Help.