2 messages in com.mysql.lists.eventum-usersRe: Small problem
FromSent OnAttachments
Nicolas Clemeur26 May 2005 21:19 
Bryan Alsdorf31 May 2005 10:25 
Subject:Re: Small problem
From:Bryan Alsdorf (bry@mysql.com)
Date:05/31/2005 10:25:03 AM
List:com.mysql.lists.eventum-users

Thanks! I have fixed this.

Regards, /bryan

Nicolas Clemeur wrote:

Hello all,

I encounter a small bug when using auto-creation of issue by email coupled with customer integration. The problem only happen if everybody is authorised create a issue ("Only for Known Customers" option is set to No).

In this case, when an email is sent by a member of the staff, there is a problem in Issue::createFromEmail where Customer::getAccountManagers is called with an empty customer_id. This result in an invalid sql statment.

A way to correct this problem would be to replace the call to Customer::getAccountManagers (around line 1587 in class.issue.php) by the following code

if(!empty($customer_id)) $managers = Customer::getAccountManagers($prj_id, $customer_id); else $managers = array();

Cheers

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