[Vtigercrm-developers] (no subject)
Paproth, Stefan
paproth at 4com.de
Tue Aug 25 08:36:59 PDT 2009
Hi there,
I have the following problem:
I've disabled the module "leads". When selecting a campaign (
"Marketing"->"Campaigns"),choosing "More Informations" and then trying
to load a list by clicking on the button "Load List" the following
JavaScript Error occurs.:
$("lead_cv_list") is undefined
The attached patch should fix the problem. Could you integrate the patch
into the next vtiger release?
best regards
Stefan
File can be found under "Smarty/templates"
--- RelatedLists.tpl_BA 2009-08-25 14:44:55.000000000 +0200
+++ RelatedLists.tpl 2009-08-25 14:47:00.000000000 +0200
@@ -52,11 +52,9 @@
function loadCvList(type,id)
{ldelim}
- if($("lead_cv_list").value != 'None' || $("cont_cv_list").value
!= 'None')
- {ldelim}
- $("status").style.display="inline";
- if(type === 'Leads')
+ if(type === 'Leads' && $("lead_cv_list").value !=
'None')
{ldelim}
+ $("status").style.display="inline";
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope:
'command'{rdelim},
@@ -70,8 +68,9 @@
);
{rdelim}
- if(type === 'Contacts')
+ if(type === 'Contacts' || $("cont_cv_list").value !=
'None')
{ldelim}
+ $("status").style.display="inline";
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope:
'command'{rdelim},
@@ -84,7 +83,6 @@
{rdelim}
);
{rdelim}
- {rdelim}
{rdelim}
</script>
{include file='Buttons_List1.tpl'}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20090825/27037441/attachment-0003.html
More information about the vtigercrm-developers
mailing list