From: kurund Date: Wed, 5 Nov 2014 11:33:23 +0000 (+0530) Subject: fix for CRM-15474 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=50e00ef4a189e573c6feaa827e0a8d0d6aa482b5;p=civicrm-core.git fix for CRM-15474 ---------------------------------------- * CRM-15474: Event cart option js breaks "add participant" form https://issues.civicrm.org/jira/browse/CRM-15474 --- diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index 109767ebc6..fe0a63ba28 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -341,7 +341,7 @@ var $form = $('form.{/literal}{$form.formClass}{literal}'); // don't show cart related statuses if it's disabled - {/literal}{if !$enableCart}{literal} + {/literal}{if !$enableCart && $pendingInCartStatusId}{literal} var pendingInCartStatusId = {/literal}{$pendingInCartStatusId}{literal}; $("#status_id option[value='" + pendingInCartStatusId + "']").remove(); {/literal}{/if}{literal}