[Vtigercrm-commits] [vtiger-commits] r5318 - /vtigercrm/trunk/include/utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 03:55:32 EDT 2006
Author: saraj
Date: Tue Apr 25 01:55:27 2006
New Revision: 5318
Log:
Function added to filter and show only unselected contacts. Fixes #528, and refs #528
Modified:
vtigercrm/trunk/include/utils/ListViewUtils.php
Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Tue Apr 25 01:55:27 2006
@@ -1881,6 +1881,7 @@
Param $recordid - the record id for which the entity is assigned
Return tyep string.
*/
+
function getRelCheckquery($currentmodule,$returnmodule,$recordid)
{
global $adb;
@@ -1890,6 +1891,14 @@
if($currentmodule=="Contacts" && $returnmodule == "Potentials")
{
$query = "select contactid from contpotentialrel where potentialid = ".$recordid;
+ }
+ elseif($currentmodule=="Contacts" && $returnmodule == "Vendors")
+ {
+ $query = "select contactid from vendorcontactrel where vendorid = ".$recordid;
+ }
+
+ if($query !='')
+ {
$result = $adb->query($query);
if($adb->num_rows($result)!=0)
{
@@ -1897,8 +1906,8 @@
{
$skip_id[]=$adb->query_result($result,$k,"contactid");
}
- $skipids = constructList($skip_id,'INTEGER');
- $where_relquery = "and contactdetails.contactid not in ".$skipids;
+ $skipids = constructList($skip_id,'INTEGER');
+ $where_relquery = "and contactdetails.contactid not in ".$skipids;
}
}
return $where_relquery;
More information about the vtigercrm-commits
mailing list