From c2c5377822016335416bdc59c65249a64dadea37 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Oct 2014 23:31:56 +0000 Subject: [PATCH] hide submit button for activity add screen --- CRM/Core/Page/AJAX/RecurringEntity.php | 2 +- templates/CRM/Activity/Form/Activity.tpl | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Page/AJAX/RecurringEntity.php b/CRM/Core/Page/AJAX/RecurringEntity.php index 0e5c2d9c71..4d8eb4247a 100644 --- a/CRM/Core/Page/AJAX/RecurringEntity.php +++ b/CRM/Core/Page/AJAX/RecurringEntity.php @@ -101,7 +101,7 @@ class CRM_Core_Page_AJAX_RecurringEntity { } //Show the list of participants registered for the events if any - if ($formValues['entity_table'] == "civicrm_event") { + if ($formValues['entity_table'] == "civicrm_event" && !empty($parentEventId)) { $getConnectedEntities = CRM_Core_BAO_RecurringEntity::getEntitiesForParent($parentEventId, 'civicrm_event', TRUE); if ($getConnectedEntities) { $participantDetails = CRM_Event_Form_ManageEvent_Repeat::getParticipantCountforEvent($getConnectedEntities); diff --git a/templates/CRM/Activity/Form/Activity.tpl b/templates/CRM/Activity/Form/Activity.tpl index 4926cc1370..114411f388 100644 --- a/templates/CRM/Activity/Form/Activity.tpl +++ b/templates/CRM/Activity/Form/Activity.tpl @@ -226,6 +226,15 @@ }); {/literal} + {if $action eq 1} + {literal} + + {/literal} + {/if} {/if} -- 2.25.1