Skip to content

Commit 70ed435

Browse files
committed
Merge pull request #724 from LearningLocker/issue/reporting
Fixes reports.
2 parents 0517a74 + 33da20c commit 70ed435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/ReportingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function statements($lrs_id, $report_id) {
110110
public function typeahead($lrs, $segment, $query){
111111
$options = self::$segments[$segment];
112112
return Response::json($this->report->setQuery(
113-
$lrs,
113+
new \MongoId($lrs),
114114
$query,
115115
self::statementKey.$options['return'],
116116
self::statementKey.$options['query']

app/views/partials/reporting/statements.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@section('buttons')
3232
<a id="edit" href="{{ route('reporting.index', [$report->lrs_id]) }}#{{$report->_id}}/edit" class="btn btn-info"><i class="icon icon-pencil"></i> {{ Lang::get('site.edit') }}</a>
33-
<a id="graph" data-toggle="tooltip" data-placement="top" title="View a graph of statements that match this report" href="{{ route('reporting.index', [$report->lrs]) }}#{{$report->_id}}/graph" class="btn btn-success"><i class="icon icon-signal"></i> {{ Lang::get('reporting.graph') }}</a>
33+
<a id="graph" data-toggle="tooltip" data-placement="top" title="View a graph of statements that match this report" href="{{ route('reporting.index', [$report->lrs_id]) }}#{{$report->_id}}/graph" class="btn btn-success"><i class="icon icon-signal"></i> {{ Lang::get('reporting.graph') }}</a>
3434
@stop
3535

3636
@section('footer')

0 commit comments

Comments
 (0)