[Vtigercrm-developers] I suggest a change on SaveSalesorder.php
Luis Alberto Arenas Salinas
larenas at internext.com.mx
Thu Apr 6 01:39:48 PDT 2006
foreach($focus->column_fields as $fieldname => $val)
{
if(isset($_REQUEST[$fieldname]))
{
$value = $_REQUEST[$fieldname];
$match = stristr($fieldname,'id');
***** NEW LINEs*****
if($match != '0' && empty($value))$value = '0';
elseif($match == '0' && empty($value)) $value = 'null';
//echo '<BR>';
//echo $fieldname." ".$value;
//echo '<BR>';
$focus->column_fields[$fieldname] = $value;
}
}
More information about the vtigercrm-developers
mailing list