[Vtigercrm-commits] [vtiger-commits] r4473 - /vtigercrm/branches/4.2/data/CRMEntity.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 22:05:47 EST 2006
Author: mfedyk
Date: Mon Mar 27 20:05:45 2006
New Revision: 4473
Log:
all fields go blank on mysql 4.1, reverting r4395. refs #63, reopen #63
Modified:
vtigercrm/branches/4.2/data/CRMEntity.php
Modified: vtigercrm/branches/4.2/data/CRMEntity.php
==============================================================================
--- vtigercrm/branches/4.2/data/CRMEntity.php (original)
+++ vtigercrm/branches/4.2/data/CRMEntity.php Mon Mar 27 20:05:45 2006
@@ -439,18 +439,7 @@
}
$tabid= getTabid($module);
- // MWC -- Fix hidden field saving issue
- // $sql = "select * from field where tabid=" . $tabid . " and tablename='" . $table_name . "' and displaytype in (1,3)";
- $sql = "select * from field
- inner join profile2field on profile2field.fieldid=field.fieldid
- inner join def_org_field on def_org_field.fieldid=field.fieldid
- where field.tabid=" . $tabid . "
- and field.tablename='" . $table_name . "'
- and field.displaytype in (1,3)
- and profile2field.visible=0
- and def_org_field.visible=0
- and profile2field.profileid=" . $profile_id . "
- order by sequence";
+ $sql = "select * from field where tabid=".$tabid." and tablename='".$table_name."' and displaytype in (1,3)";
$result = $adb->query($sql);
$noofrows = $adb->num_rows($result);
for($i=0; $i<$noofrows; $i++)
@@ -930,16 +919,7 @@
}
$tabid = getTabid($module);
- // MWC -- Fix hidden field saving issue
- // $sql1 = "select * from field where tabid=" . $tabid;
- $sql1 = "select * from field
- inner join profile2field on profile2field.fieldid=field.fieldid
- inner join def_org_field on def_org_field.fieldid=field.fieldid
- where field.tabid=" . $tabid . "
- and profile2field.visible=0
- and def_org_field.visible=0
- and profile2field.profileid=" . $profile_id . "
- order by sequence";
+ $sql1 = "select * from field where tabid=".$tabid;
$result1 = $adb->query($sql1);
$noofrows = $adb->num_rows($result1);
for($i=0; $i<$noofrows; $i++)
More information about the vtigercrm-commits
mailing list