Hi,

I use content taxonomy on a node whose I alter the node creation form with a node--form.tpl.php file.

I alter the render cause I use tabs module to render the form on several tabs, it use tabs_render() instead of drupal_render() to render the form into nice tabs.

The problem is that it brings a foreach problem into taxonomy_autocomplete module. It doesn't seems to alter functionnalities...

I think adding an if condition to make the loop only if $values is not empty would bring more security and avoid some php notice.

Here is a patch that apply on the 6.x beta 4 that avoid this problem.

CommentFileSizeAuthor
content_taxonomy_autocomplete.module.patch705 byteszmove

Comments

mh86’s picture

Status: Needs review » Fixed

I added an if check (if (count($values))...) which will prevent this warning.
thanks for the patch

Status: Fixed » Closed (fixed)

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