CRM-21507 Fix error when creating case activities
[civicrm-core.git] / CRM / Case / Form / Activity.php
index 9e913a49268833f6d3aa3f36e7b888246fda13c0..d8279136b31e1270d9d6e86a00a9d2e23a46c865 100644 (file)
@@ -197,6 +197,11 @@ class CRM_Case_Form_Activity extends CRM_Activity_Form_Activity {
       }
     }
 
+    // Turn off the prompt which asks the user if they want to create separate
+    // activities when specifying multiple contacts "with" a new activity.
+    // Instead, always create one activity with all contacts together.
+    $this->supportsActivitySeparation = FALSE;
+
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext($url);
   }