When setting the default value, taxonomy_breadcrumb should check to make sure $form['vid']['#value'] is set before trying to load the default value for that vid.

Comments

schultetwin’s picture

StatusFileSize
new965 bytes

Sorry, patch is here.

jantoine’s picture

Status: Active » Needs review
StatusFileSize
new889 bytes

Patch wouldn't apply because paths in the patch file were incorrect. New patch attached with correct paths.

lmeurs’s picture

And again, works for me! Without the patch I received an error when adding a new term at admin/structure/taxonomy/add:

Notice: Undefined index: vid in taxonomy_breadcrumb_form_taxonomy_form_vocabulary_alter() (line 137 of D:\drupal\sites\all\modules\taxonomy_breadcrumb\taxonomy_breadcrumb.module).

(I added the error message for search engines)

jantoine’s picture

Status: Needs review » Fixed

Patch in #2 committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.