Skip to content

Commit

Permalink
MDL-26684 workshop: fixed missing href attribute in the link to the o…
Browse files Browse the repository at this point in the history
…wn submission

This was caused by incorrect construction of workshop_submission_summary.
Instead of direct initiation, the helper method should be used. The
helper adds a property 'url' needed to render 'href' later.
  • Loading branch information
mudrd8mz committed Mar 4, 2011
1 parent de6aaa7 commit 757bade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/workshop/view.php
Expand Up @@ -409,7 +409,7 @@
print_collapsible_region_start('', 'workshop-viewlet-ownsubmission', get_string('yoursubmission', 'workshop'));
echo $output->box_start('generalbox ownsubmission');
if ($submission = $workshop->get_submission_by_author($USER->id)) {
echo $output->render(new workshop_submission_summary($submission, true));
echo $output->render($workshop->prepare_submission_summary($submission, true));
} else {
echo $output->container(get_string('noyoursubmission', 'workshop'));
}
Expand Down

0 comments on commit 757bade

Please sign in to comment.