Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs ErrorException: Trying to get property 'label' of non-object #905

Open
tarecord opened this issue Jan 4, 2022 · 0 comments
Open
Labels

Comments

@tarecord
Copy link
Contributor

tarecord commented Jan 4, 2022

We're returning an array, but the breadcrumb template is expecting the array to be an array of Breadcrumb objects. It fails when trying to render $item->label.

return [
Breadcrumbs_Controller::BREADCRUMBS => $this->response,
Breadcrumbs_Controller::MAIN_CLASSES => [ 'u-sep-arrow' ],
];

@tarecord tarecord added the bug label Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant