-
Bug
-
Resolution: Fixed
-
Minor
-
1.6.2, 1.6.3, 1.6.4, 1.7, 1.7.1, 1.8
-
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