From 39c4fa3a083ca3137176997c913c5df68bf8a514 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Thu, 4 Apr 2013 11:32:07 -0700 Subject: [PATCH] CRM-12282 ---------------------------------------- * CRM-12282: Activity Delete gives an invalid key error http://issues.civicrm.org/jira/browse/CRM-12282 --- CRM/Activity/Page/Tab.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/CRM/Activity/Page/Tab.php b/CRM/Activity/Page/Tab.php index a84e2eb43f..f2b81c54ad 100644 --- a/CRM/Activity/Page/Tab.php +++ b/CRM/Activity/Page/Tab.php @@ -51,8 +51,11 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { $this->assign('context', 'activity'); // also create the form element for the activity filter box - $controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_ActivityFilter', - ts('Activity Filter'), NULL + $controller = new CRM_Core_Controller_Simple( + 'CRM_Activity_Form_ActivityFilter', + ts('Activity Filter'), + NULL, + FALSE, FALSE, TRUE ); $controller->set('contactId', $this->_contactId); $controller->setEmbedded(TRUE); @@ -138,15 +141,19 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { $this->assign('action', $this->_action); // also create the form element for the activity links box - $controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_ActivityLinks', - ts('Activity Links'), NULL + $controller = new CRM_Core_Controller_Simple( + 'CRM_Activity_Form_ActivityLinks', + ts('Activity Links'), + NULL, + FALSE, FALSE, TRUE ); $controller->setEmbedded(TRUE); $controller->run(); } function delete() { - $controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_Activity', + $controller = new CRM_Core_Controller_Simple( + 'CRM_Activity_Form_Activity', ts('Activity Record'), $this->_action ); -- 2.25.1