Skip to content

Commit

Permalink
MDL-58210 core: course summary exporter provides full name to display
Browse files Browse the repository at this point in the history
Part of MDL-55611 epic.
  • Loading branch information
mdjnelson authored and Damyon Wiese committed Apr 3, 2017
1 parent 240e523 commit 15c7d75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/myoverview/templates/course-summary.mustache
Expand Up @@ -34,7 +34,7 @@
{{> block_myoverview/progress-chart}}
</div>
<div class="row m-b-1">
<h3><a href="{{viewurl}}">{{shortname}}</a></h3>
<h3><a href="{{viewurl}}">{{fullnamedisplay}}</a></h3>
</div>
<div class="row text-muted m-b-1">
{{startdate}} - {{enddate}}
Expand Down
Expand Up @@ -37,7 +37,7 @@
{{> block_myoverview/progress-chart}}
</div>
<div class="col-md-6">
<h3 class="align-text-bottom"><a href="{{viewurl}}">{{shortname}}</a></h3>
<h3 class="align-text-bottom"><a href="{{viewurl}}">{{fullnamedisplay}}</a></h3>
</div>
</div>
<div class="row text-muted m-b-1">
Expand Down
5 changes: 4 additions & 1 deletion course/classes/external/course_summary_exporter.php
Expand Up @@ -42,8 +42,8 @@ protected static function define_related() {

protected function get_other_values(renderer_base $output) {
return array(
'fullnamedisplay' => get_course_display_name_for_list($this->data),
'viewurl' => (new moodle_url('/course/view.php', array('id' => $this->data->id)))->out(false)

);
}

Expand Down Expand Up @@ -75,6 +75,9 @@ public static function define_properties() {

public static function define_other_properties() {
return array(
'fullnamedisplay' => array(
'type' => PARAM_TEXT,
),
'viewurl' => array(
'type' => PARAM_URL,
)
Expand Down

0 comments on commit 15c7d75

Please sign in to comment.