<span>Hi Baroiller,<br><br>Thanks a lot for highlight the issue and suggesting the fix.<br><br>Regards,<br>Prasad<br>vtiger Team<br></span><br><div><span class="gmail_quote">On 11/21/07, <b class="gmail_sendername">Baroiller Pierre-Emmanuel
</b> <<a href="mailto:baroiller@daoditu.com">baroiller@daoditu.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi all,
<br><br>some users reported me an error on potential module where they can't<br>click any "button".<br>after investigation, i've found where was the bug and i think it may be<br>usefull for other people.
<br><br>in Smarty/templates/RelatedListContents.tpl<br><br>we have :<br>{if $BASE_ACCOUNT neq ''}<br> {assign var="search_string"<br>value="&search_field=accountid&query=true&searchtype=BasicSearch&search_text=$BASE_ACCOUNT&check_rel=potential_rel"}
<br>{/if}<br><br>where $BASE_ACCOUNT is an account name but.. what it this account have<br>some ' in it ??<br>the result is a javascript error that lock all other js on the loaded page.<br><br>to fix this little error, change these files :
<br><br>modules/Potentials/DetailView.php<br>change<br>$smarty->assign("BASE_ACCOUNT",getAccountName($focus->column_fields[account_id]));<br>with<br>$smarty->assign("BASE_ACCOUNT",rawurlencode(getAccountName($focus->column_fields[account_id])));
<br><br>and<br><br>modules/Potential/CallRelatedList.php<br>change<br><br>$smarty->assign("BASE_ACCOUNT",getAccountName($focus->column_fields[account_id]));<br>with<br><br>$smarty->assign("BASE_ACCOUNT",rawurlencode(getAccountName($focus->column_fields[account_id])));
<br><br><br>regards<br><br>--<br><br>Pierre-Emmanuel Baroiller<br><br>_______________________________________________<br>Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a>
<br></blockquote></div><br>