Merge branch 4.6 into master
[civicrm-core.git] / CRM / Activity / Form / Activity.php
index b082b6af99865f284c29dc44126b2c5f4d0b5ccc..1fe07df7cb32008c2e2513839f22bba1484893ac 100644 (file)
@@ -122,6 +122,13 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
 
   protected $unsavedWarn = TRUE;
 
+  /**
+   * Explicitly declare the entity api name.
+   */
+  public function getDefaultEntity() {
+    return 'Activity';
+  }
+
   /**
    * The _fields var can be used by sub class to set/unset/edit the
    * form fields based on their requirement