Fix show tag [skip ci]

This commit is contained in:
James Cole 2016-03-02 20:40:43 +01:00
parent 3d2f33c120
commit 2606d77c62
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ use Auth;
use FireflyIII\Http\Requests\TagFormRequest;
use FireflyIII\Models\Preference;
use FireflyIII\Models\Tag;
use FireflyIII\Models\TransactionJournal;
use FireflyIII\Repositories\Tag\TagRepositoryInterface;
use Illuminate\Support\Collection;
use Input;
@ -219,8 +220,9 @@ class TagController extends Controller
{
$subTitle = $tag->tag;
$subTitleIcon = 'fa-tag';
$journals = $tag->transactionjournals()->expanded()->get(TransactionJournal::QUERYFIELDS);
return view('tags.show', compact('tag', 'subTitle', 'subTitleIcon'));
return view('tags.show', compact('tag', 'subTitle', 'subTitleIcon','journals'));
}
/**

View File

@ -93,7 +93,7 @@
</div>
</div>
<div class="box-body table-responsive no-padding">
{% include 'list/journals.twig' with {'journals': tag.transactionjournals} %}
{% include 'list/journals.twig' %}
</div>
</div>
</div>