[Vtigercrm-commits] [vtiger-commits] r4400 - in /vtigercrm/branches/4.2/modules: Potentials/RenderRelatedListUI.php Quotes/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 23 00:33:55 EST 2006
Author: mfedyk
Date: Wed Mar 22 22:33:52 2006
New Revision: 4400
Log:
Fix quotes are not created correctly form Potentials or from Quote screen, by onwealdandy. closes #51
Modified:
vtigercrm/branches/4.2/modules/Potentials/RenderRelatedListUI.php
vtigercrm/branches/4.2/modules/Quotes/Save.php
Modified: vtigercrm/branches/4.2/modules/Potentials/RenderRelatedListUI.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Potentials/RenderRelatedListUI.php (original)
+++ vtigercrm/branches/4.2/modules/Potentials/RenderRelatedListUI.php Wed Mar 22 22:33:52 2006
@@ -18,7 +18,8 @@
$hidden .= '<input type="hidden" name="module">';
$hidden .= '<input type="hidden" name="mode">';
$hidden .= '<input type="hidden" name="potential_id" value="'.$id.'">';
- $hidden .= '<input type="hidden" name="contact_id" value="'.$id.'">';
+ //2-21-06 arodes - removed contact_id value = $id since the id passed in is not a contact id value
+ $hidden .= '<input type="hidden" name="contact_id" value="">';
$hidden .= '<input type="hidden" name="return_module" value="Potentials">';
$hidden .= '<input type="hidden" name="return_action" value="DetailView">';
$hidden .= '<input type="hidden" name="return_id" value="'.$id.'">';
Modified: vtigercrm/branches/4.2/modules/Quotes/Save.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Quotes/Save.php (original)
+++ vtigercrm/branches/4.2/modules/Quotes/Save.php Wed Mar 22 22:33:52 2006
@@ -53,6 +53,12 @@
if(isset($_REQUEST[$fieldname]))
{
$value = $_REQUEST[$fieldname];
+ $match = stristr($fieldname,'id'); // adding this to try and set only foreign keys.
+ if(empty($value) && $match != '0') // we dont want ALL blank values set to null
+ {
+ $value = 'null';
+ }
+
//echo '<BR>';
//echo $fieldname." ".$value;
//echo '<BR>';
More information about the vtigercrm-commits
mailing list