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
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

quicksketch - November 2, 2009 - 06:30
Status:active» fixed

Thanks, committed attached patch!

#2

quicksketch - November 2, 2009 - 06:31

Oops, forgot to make the patch. Here's the commit patch.

http://cvs.drupal.org/viewvc/drupal/contributions/modules/flag/flag.modu...

#3

System Message - November 16, 2009 - 06:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.