Fix category bread crumb

This commit is contained in:
James Cole 2018-08-07 19:28:54 +02:00
parent f494ba7065
commit 229d033e1a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -447,7 +447,7 @@ try {
Breadcrumbs::register(
'categories.edit',
function (BreadcrumbsGenerator $breadcrumbs, Category $category) {
$breadcrumbs->parent('categories.show', $category, '(nothing)', new Carbon, new Carbon);
$breadcrumbs->parent('categories.show-all', $category, '', new Carbon, new Carbon);
$breadcrumbs->push(trans('firefly.edit_category', ['name' => limitStringLength($category->name)]), route('categories.edit', [$category->id]));
}
);