[Vtigercrm-developers] Mail Manager issues

James Purdy james.purdy at wildtv.ca
Wed Jun 20 14:39:13 PDT 2012


Looking at vtiger_crmentity, I actually have no crmid with value 1.

The issue itself came up rather curiously, with one user reporting that 
they couldn't send email, and attempting with a brand new entry appears 
to succeed.  Now, of course, my concern is that there are a number of 
missing records - or something worse!  If there's bad logic somewhere 
else along the sales or lead/conversion process, there could be a bunch 
of bad data.

Thanks again,

James Purdy
WildTV
[e]: james.purdy at wildtv.ca


On 06/20/2012 03:02 PM, Adam Heinz wrote:
> This just sounds wrong to me.  $entityId is vtiger_crmentity.crmid,
> the auto incrementing primary key for all entities.  It seems unlikely
> that the entity you are mailing about is related to the first entity
> ever created in your database.  I would just start putting debug
> statements in MailManager_MailController:: process or poke around in
> the database and try to figure out how the related entity is crmid 1.
> Can't tell if this is bad data or logic yet.
>
> On Wed, Jun 20, 2012 at 4:20 PM, James Purdy<james.purdy at wildtv.ca>  wrote:
>> Hi Adam,
>>
>> Thanks for the quick response, version 5.4.0.
>>
>> The code in question:
>> if ($relateto[1] != NULL) {
>> $entityId = $relateto[1];
>> $parent_module = getSalesEntityType($entityId);
>> $description = getMergedDescription($body, $entityId, $parent_module);
>> }
>>
>> Now, I find that $entityId is integer 1.  $parent_module is empty.  I'm not sure what getSalesEntityType should be returning - but the results are the same if I send to an Organization or Contact or just any random email address.
>>
>> Thanks,
>>
>> James Purdy
>> WildTV
>> [e]: james.purdy at wildtv.ca
> _______________________________________________
> http://www.vtiger.com/
>


More information about the vtigercrm-developers mailing list