From: danmarsden Date: Fri, 30 Mar 2007 02:10:58 +0000 (+0000) Subject: fix for MDL-9087 screwy page when user places table into online assignment. - mergin... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f2bb50394f6ecd211dd0a5e8547b8a0295260c47;p=moodle.git fix for MDL-9087 screwy page when user places table into online assignment. - merging changes from Moodle_18_stable --- diff --git a/mod/assignment/type/online/assignment.class.php b/mod/assignment/type/online/assignment.class.php index b6396350e8..63088a7dd2 100644 --- a/mod/assignment/type/online/assignment.class.php +++ b/mod/assignment/type/online/assignment.class.php @@ -104,12 +104,14 @@ class assignment_online extends assignment_base { } else if ($this->isopen()){ //fix for #4206 echo '
'.get_string('emptysubmission', 'assignment').'
'; } - if ($editable) { - print_single_button('view.php', array('id'=>$this->cm->id, 'edit'=>'1'), - get_string('editmysubmission', 'assignment')); - } } print_simple_box_end(); + if (!$editmode && $editable) { + echo "
"; + print_single_button('view.php', array('id'=>$this->cm->id,'edit'=>'1'), + get_string('editmysubmission', 'assignment')); + echo "
"; + } }