When a vocabulary with a taxonomy menu is saved but none of the taxonomy menu data has changed notices are raised about $changed_menu, $change_vocab_item and $changed_path not being defined.

Patch initialises these variables and addresses a typo in a comment.

CommentFileSizeAuthor
taxonomy_menu_flag_notices.patch1.44 KBbellHead

Comments

dstol’s picture

Status: Active » Needs review

I'll check this out. Thanks.

vlad.leo’s picture

Version: 7.x-1.x-dev » 7.x-1.0

Drupal 7.0

When I try to create new vocabulary after installation of Taxonomy Menu (for 7.0)

Error message
Notice: Undefined variable: changed_menu in taxonomy_menu_vocab_submit() (line 157 of Z:\home\dr7\www\sites\all\modules\taxonomy_menu\taxonomy_menu.module).
Notice: Undefined variable: changed_menu in taxonomy_menu_vocab_submit() (line 158 of Z:\home\dr7\www\sites\all\modules\taxonomy_menu\taxonomy_menu.module).
Notice: Undefined variable: changed_menu in taxonomy_menu_vocab_submit() (line 160 of Z:\home\dr7\www\sites\all\modules\taxonomy_menu\taxonomy_menu.module).
Notice: Undefined variable: change_vocab_item in taxonomy_menu_vocab_submit() (line 160 of Z:\home\dr7\www\sites\all\modules\taxonomy_menu\taxonomy_menu.module).

Note vocabulary I can make and work with him, but it is unexpected to see this message.

dstol’s picture

In the mean time you can always turn error reporting down to remove E_NOTICE.

dstol’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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