Closed (fixed)
Project:
Content Taxonomy
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2008 at 11:09 UTC
Updated:
31 Dec 2008 at 21:20 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy_autocomplete.module.patch | 705 bytes | zmove |
Comments
Comment #1
mh86 commentedI added an if check (if (count($values))...) which will prevent this warning.
thanks for the patch