X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FActivity%2FForm%2FActivity.php;h=1fe07df7cb32008c2e2513839f22bba1484893ac;hb=c15fb38374462a40d704d83fac983412df8a16a1;hp=facd92491db6b9ef7a9efb5ecea087b889ba0170;hpb=c3687ae1c29579ae9cb0b3fe5dbc43a89836b417;p=civicrm-core.git diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index facd92491d..1fe07df7cb 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -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