Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66584

Drag-drop onto image question with many drop zones triggers JS warning

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.6.5, 3.7.1, 4.1.3
    • Questions

      To reproduce:

      1. On a site with developer debugging turned on ...
      2. Import the attached Moodle XML file to the question bank in a course.
      3. Preview the newly imported question (called "Periodic table").

      Note the error at the top:

      Too much data passed as arguments to js_call_amd("qtype_ddimageortext/question", "init"). Generally there are better ways to pass lots of data from PHP to JavaScript, for example via Ajax, data attributes, ... . This warning is triggered if the argument string becomes longer than 1024 characters.

      The message is right. In this case, we should probably switch to using data attributes.

            danghieu1407 Hieu Nguyen Dang
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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