Skip to content

Commit

Permalink
Do not show Activity Separation on when viewing an Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
19ATF72 committed Aug 16, 2019
1 parent 3f93c30 commit 03ca7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Activity/Form/Activity.php
Expand Up @@ -747,7 +747,7 @@ public function buildQuickForm() {
$this->assign('surveyActivity', $this->_isSurveyActivity);

// Add the "Activity Separation" field
$actionIsAdd = $this->_action != CRM_Core_Action::UPDATE;
$actionIsAdd = ($this->_action != CRM_Core_Action::UPDATE && $this->_action != CRM_Core_Action::VIEW);
$separationIsPossible = $this->supportsActivitySeparation;
if ($actionIsAdd && $separationIsPossible) {
$this->addRadio(
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Activity/Form/Activity.tpl
Expand Up @@ -79,7 +79,7 @@
</td>
</tr>

{if $form.separation }
{if $form.separation}
<tr class="crm-activity-form-block-separation crm-is-multi-activity-wrapper">
<td class="label">{$form.separation.label}</td>
<td>{$form.separation.html} {help id="separation"}</td>
Expand Down

0 comments on commit 03ca7bc

Please sign in to comment.