When listing titles in the 'Edit Custom Breadcrumb for Node' form, leaving an empty line causes the following error:

Notice: Undefined offset: 3 in _custom_breadcrumbs_get_trail_items() (line 436 van /var/www/marktwinkel/sites/all/modules/custom_breadcrumbs/custom_breadcrumbs.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cesarmiquel’s picture

I was getting a similar error and the problem was an empty line at the end of the title field in the configuration of a custom breadcrumb path (admin/structure/custom_breadcrumbs/path/edit/[ID]).
Maybe we can remove empty lines at then end of $breadcrumb->titles just in case in _custom_breadcrumbs_get_trail_items()?

joshf’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
609 bytes

This patch discards blank lines in the title field.