Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4326

Cannot add comments to any entry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.3.7, 2.4.3
    • Module: Dataform
    • 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))

      { throw new moodle_exception('invaliddataform', 'dataform', null, null, "Cm id: $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.

            itamart Itamar Tzadok
            zfrankz frank
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.