Some issues fixed for scrutiniser.

This commit is contained in:
James Cole
2016-09-25 08:36:35 +02:00
parent 45bc23b8af
commit 0d198193db
4 changed files with 10 additions and 27 deletions

View File

@@ -183,7 +183,7 @@ class CategoryController extends Controller
$journals->setPath('categories/show/' . $category->id);
// oldest transaction in category:
$start = $repository->firstUseDate($category, new Collection);
$start = $repository->firstUseDate($category);
if ($start->year == 1900) {
$start = new Carbon;
}

View File

@@ -58,7 +58,7 @@ class CategoryController extends Controller
*/
public function all(CRI $repository, AccountCrudInterface $crud, Category $category)
{
$start = $repository->firstUseDate($category, new Collection);
$start = $repository->firstUseDate($category);
$range = Preferences::get('viewRange', '1M')->data;
$start = Navigation::startOfPeriod($start, $range);
$categoryCollection = new Collection([$category]);