Hi John,<div><br></div><div>Thanks for reporting the issue and for your effort in looking deeper into the issue.</div><div><br></div><div>We had also discovered the same issue recently, and have fixed it internally. </div>
<div><br></div><div>The issue here is, whenever you try to add an Event or a Todo to any entities other than Accounts and Contacts, and check 'Send Notification', it will fail.</div><div><br></div><div>Following is the trac ticket for the same:</div>
<div><a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7164">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7164</a></div><div><br></div><div>Fix will be available in our upcoming release 5.3.0.<br><br><div class="gmail_quote">
On Mon, Oct 17, 2011 at 9:53 PM, John Crisp <span dir="ltr"><<a href="mailto:john@reetspetit.net" target="_blank">john@reetspetit.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 17/10/11 17:52, John Crisp wrote:<br>
> I have had an odd situation that I cannot resolve. I have tested this on<br>
> the demo server and it works but not on my installation. I can only<br>
> assume a mod somewhere has upset things but cannot see what.<br>
><br>
> When adding a ToDo to a SO/Inv/PO I was getting a stop as follows (it<br>
> worked fine from Accounts or Contacts)<br>
<br>
<br>
</div>Further to this, I realised I should have said that it was stopping on<br>
ToDos from Accounts and Contacts which were being related to Sales Orders<br>
<br>
Any comments appreciated. I will go back and check exactly when it is<br>
failing as I may have got myself in a knot !<br>
<br>
However I think the error still stands in the ComonUtils.php file<br>
<br>
I have amended it as follows adding an extra 'else' line :<br>
<div><br>
function getParentName($parent_id)<br>
{<br>
global $adb;<br>
if ($parent_id == 0)<br>
return "";<br>
$sql="select setype from vtiger_crmentity where crmid=?";<br>
$result=$adb->pquery($sql,array($parent_id));<br>
//For now i have conditions only for accounts and contacts, if needed<br>
can add more<br>
if($adb->query_result($result,'setype') == 'Accounts')<br>
$sql1="select accountname name from vtiger_account where accountid=?";<br>
else if($adb->query_result($result,'setype') == 'Contacts')<br>
$sql1="select concat( firstname, ' ', lastname ) name from<br>
vtiger_contactdetails where contactid=?";<br>
</div><div> else $sql1="select setype from vtiger_crmentity where crmid=?";<br>
</div><div> $result1=$adb->pquery($sql1,array($parent_id));<br>
$asd=$adb->query_result($result1,'name');<br>
return $asd;<br>
}<br>
<br>
<br>
<br>
</div>Not sure if this is right but IWFM<br>
<div><div></div><div><br>
B. Rgds<br>
John<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Asha<br>vtiger Team<br><br><b>Connect with us on: </b><a href="http://twitter.com/#%21/vtigercrm" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" target="_blank">Website</a><br>
<br>
</div>