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

When student places table inside Online assignment the "Edit my submission" button disapears

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8, 1.9
    • 1.6.2, 1.6.3, 1.6.4, 1.7, 1.7.1, 1.8
    • Assignment (2.2), Other
    • None
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      If a student puts a table inside their online assignment submission, they can no longer see the edit my submissions button because it invalidates the html on the page.

      • to fix the problem, in the function view() of mod\assignment\type\online\assignment.class.php

      the function print_simple_box_end(); should be called before displaying the edit button, and after it, to display the edit my submissions box - something like this would work:

      if (!$editmode && $editable)

      { echo "<div align='center'>"; print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1'), get_string('editmysubmission', 'assignment')); echo "</div>"; }

      Of course this doesn't fix the problem with the page not being valid xhtml - but it still allows the student to use the page!

      Dan

            danmarsden Dan Marsden
            danmarsden Dan Marsden
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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