<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-2 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23536"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Arial>Hello,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've just took a look at Vtiger_Request class and
found</FONT></DIV>
<DIV><FONT size=2 face=Arial>the following code:</FONT></DIV>
<DIV> </DIV>
<DIV> <FONT size=2 face=Arial>...</FONT></DIV>
<DIV><FONT size=2 face=Arial> function get($key,
$defvalue = '') {<BR> $value =
$defvalue;<BR> if(isset($this->valuemap[$key]))
{<BR> $value
=
$this->valuemap[$key];<BR> }<BR> if($defvalue
=== '' && isset($this->defaultmap[$key]))
{<BR> $value
=
$this->defaultmap[$key];<BR> }</FONT></DIV>
<DIV><FONT size=2 face=Arial> ...<BR></FONT></DIV>
<DIV><FONT size=2 face=Arial>It seems that if a default value is set in the
defaultmap,</FONT></DIV>
<DIV><FONT size=2 face=Arial>it always overrides the value from the request - is
it intentional?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>My guess is that the condition should look
like:</FONT></DIV>
<DIV><FONT size=2
face=Arial> if($value === ''
&& isset($this->defaultmap[$key])) {</FONT></DIV>
<DIV><FONT size=2 face=Arial>instead of:</FONT></DIV>
<DIV><FONT size=2
face=Arial> if($defvalue === ''
&& isset($this->defaultmap[$key])) {<BR></FONT></DIV>
<DIV><FONT size=2 face=Arial>Regards,</FONT></DIV>
<DIV><FONT size=2 face=Arial>Micha³ Zygmuntowicz<BR></DIV></FONT></BODY></HTML>