Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined_offset_in__custom_breadcrumbs_get_trail_items-1807932-2.patch | 609 bytes | joshf |
Comments
Comment #1
cesarmiquel CreditAttribution: cesarmiquel commentedI 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()?
Comment #2
joshf CreditAttribution: joshf at Third and Grove commentedThis patch discards blank lines in the title field.