From 50e00ef4a189e573c6feaa827e0a8d0d6aa482b5 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 5 Nov 2014 17:03:23 +0530 Subject: [PATCH] fix for CRM-15474 ---------------------------------------- * CRM-15474: Event cart option js breaks "add participant" form https://issues.civicrm.org/jira/browse/CRM-15474 --- templates/CRM/Event/Form/Participant.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.25.1