[Vtigercrm-commits] [vtiger-commits] r6532 - in /vtigercrm/trunk/modules: Contacts/Contact.php Potentials/Opportunity.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 27 10:29:28 EDT 2006
Author: saraj
Date: Sat May 27 08:29:22 2006
New Revision: 6532
Log:
* Modified the export query where the user name who is the owner of the entity will be exported instead of creator
Modified:
vtigercrm/trunk/modules/Contacts/Contact.php
vtigercrm/trunk/modules/Potentials/Opportunity.php
Modified: vtigercrm/trunk/modules/Contacts/Contact.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/Contact.php (original)
+++ vtigercrm/trunk/modules/Contacts/Contact.php Sat May 27 08:29:22 2006
@@ -521,7 +521,7 @@
users.user_name assigned_user_name
FROM contactdetails
inner join crmentity on crmentity.crmid=contactdetails.contactid
- LEFT JOIN users ON crmentity.smcreatorid=users.id
+ LEFT JOIN users ON crmentity.smownerid=users.id
LEFT JOIN account on contactdetails.accountid=account.accountid
left join contactaddress on contactaddress.contactaddressid=contactdetails.contactid
left join contactscf on contactscf.contactid=contactdetails.contactid
@@ -535,7 +535,7 @@
users.user_name assigned_user_name
FROM contactdetails
inner join crmentity on crmentity.crmid=contactdetails.contactid
- LEFT JOIN users ON crmentity.smcreatorid=users.id
+ LEFT JOIN users ON crmentity.smownerid=users.id
LEFT JOIN account on contactdetails.accountid=account.accountid
left join contactaddress on contactaddress.contactaddressid=contactdetails.contactid
left join contactscf on contactscf.contactid=contactdetails.contactid
Modified: vtigercrm/trunk/modules/Potentials/Opportunity.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/Opportunity.php (original)
+++ vtigercrm/trunk/modules/Potentials/Opportunity.php Sat May 27 08:29:22 2006
@@ -168,7 +168,7 @@
ON crmentity.crmid=potential.potentialid
LEFT JOIN account on potential.accountid=account.accountid
left join potentialscf on potentialscf.potentialid=potential.potentialid
- left join users on crmentity.smcreatorid=users.id where crmentity.deleted=0 ";
+ left join users on crmentity.smownerid=users.id where crmentity.deleted=0 ";
}
else
{
@@ -177,7 +177,7 @@
account.accountname account_name,
users.user_name assigned_user_name
FROM potential inner join crmentity on crmentity.crmid=potential.potentialid LEFT JOIN users
- ON crmentity.smcreatorid=users.id
+ ON crmentity.smownerid=users.id
LEFT JOIN account on potential.accountid=account.accountid LEFT JOIN potentialscf on potentialscf.potentialid=potential.potentialid where crmentity.deleted=0 ";
}
More information about the vtigercrm-commits
mailing list