flag_get_content_flags() ignores parameter $flag_name
stBorchert - October 29, 2009 - 12:03
| Project: | Flag |
| Version: | 6.x-2.x-dev |
| Component: | Flag core |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Function flag_get_content_flags has a parameter $flag_name on which only information about this flag should be returned.
But instead the function checks for $flag so it always returns information about all flags on this content.
return isset($flag) ...
should be
return isset($flag_name) ...

#1
Thanks, committed attached patch!
#2
Oops, forgot to make the patch. Here's the commit patch.
http://cvs.drupal.org/viewvc/drupal/contributions/modules/flag/flag.modu...
#3
Automatically closed -- issue fixed for 2 weeks with no activity.