fix for CRM-15474
authorkurund <kurund@civicrm.org>
Wed, 5 Nov 2014 11:33:23 +0000 (17:03 +0530)
committerkurund <kurund@civicrm.org>
Wed, 5 Nov 2014 11:33:23 +0000 (17:03 +0530)
----------------------------------------
* CRM-15474: Event cart option js breaks "add participant" form
  https://issues.civicrm.org/jira/browse/CRM-15474

templates/CRM/Event/Form/Participant.tpl

index 109767ebc60a197839064f0ad491532dbdca5078..fe0a63ba288c3fc78e0ed0af7eba0f5599918d2f 100644 (file)
         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}