From f2bb50394f6ecd211dd0a5e8547b8a0295260c47 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Fri, 30 Mar 2007 02:10:58 +0000 Subject: [PATCH] fix for MDL-9087 screwy page when user places table into online assignment. - merging changes from Moodle_18_stable --- mod/assignment/type/online/assignment.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 "
"; + } } -- 2.39.5