This should fix the tests

This commit is contained in:
James Cole 2017-02-15 17:07:56 +01:00
parent 636b371b86
commit 395a7bb33c
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -261,7 +261,6 @@ class MetaPieChart implements MetaPieChartInterface
$chartData = [];
$names = [];
$repository = app($this->repositories[$type]);
$repository->setUser($this->user);
foreach ($array as $objectId => $amount) {
if (!isset($names[$objectId])) {
$object = $repository->find(intval($objectId));