Skip to content

Commit

Permalink
Merge branch 'MDL-29400_misleading_file_upload_status' of git://githu…
Browse files Browse the repository at this point in the history
…b.com/gerrywastaken/moodle
  • Loading branch information
stronk7 committed Dec 20, 2011
2 parents e968c5f + d6d8c49 commit 1af989f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mod/assignment/type/upload/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,8 @@ function extend_settings_navigation($node) {
$editable = false;
}

// If the user has submitted something add a bit more stuff
if ($submission) {
// If the user has submitted something add some related links and data
if ($submission->data2 == 'submitted') {
// Add a view link to the settings nav
$link = new moodle_url('/mod/assignment/view.php', array('id'=>$this->cm->id));
$node->add(get_string('viewmysubmission', 'assignment'), $link, navigation_node::TYPE_SETTING);
Expand Down
4 changes: 2 additions & 2 deletions mod/assignment/type/uploadsingle/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ function extend_settings_navigation($node) {
$editable = false;
}

// If the user has submitted something add a bit more stuff
if ($submission) {
// If the user has submitted something add some related links and data
if ($submission->numfiles) {
// Add a view link to the settings nav
$link = new moodle_url('/mod/assignment/view.php', array('id'=>$this->cm->id));
$node->add(get_string('viewmysubmission', 'assignment'), $link, navigation_node::TYPE_SETTING);
Expand Down

0 comments on commit 1af989f

Please sign in to comment.