[Vtigercrm-developers] Mail Manager issues

Adam Heinz amh at metricwise.net
Wed Jun 20 14:02:31 PDT 2012


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



More information about the vtigercrm-developers mailing list