2 messages in com.mysql.lists.eventum-develRe: Patch for customfield bug
FromSent OnAttachments
Are Pedersen28 Oct 2005 04:43 
Bryan Alsdorf28 Oct 2005 08:47 
Subject:Re: Patch for customfield bug
From:Bryan Alsdorf (bry@mysql.com)
Date:10/28/2005 08:47:21 AM
List:com.mysql.lists.eventum-devel

Hi,

Are Pedersen wrote:

I don't know if this is already fixed, but I'll post this patch anyway:

in class.custom_field.php on line 453 in function getListByIssue

the line reading: $res[$i]["icf_value"] = Custom_Field::getOptionValue($res[$i]["fld_id"], $res[$i]["fld_id"]);

shoud be: $res[$i]["icf_value"] = Custom_Field::getOptionValue($res[$i]["fld_id"], $res[$i]["selected_cfo_id"]);

The problem is that without this fix, the custom_field (combo box) does not show the correct value when showing the issue details and listing the issues.

I am unable to reproduce this problem, or find that line of code so I am going to assume that it was fixed in my last round of custom field changes.

Thanks for the report and the patch!

Best Regards,

Are you MySQL certified? www.mysql.com/certification