Skip to content
Snippets Groups Projects
Commit 39c4fa3a authored by lobo's avatar lobo
Browse files

CRM-12282

----------------------------------------
* CRM-12282: Activity Delete gives an invalid key error
  http://issues.civicrm.org/jira/browse/CRM-12282
parent a699a077
No related branches found
No related tags found
No related merge requests found
...@@ -51,8 +51,11 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { ...@@ -51,8 +51,11 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page {
$this->assign('context', 'activity'); $this->assign('context', 'activity');
// also create the form element for the activity filter box // also create the form element for the activity filter box
$controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_ActivityFilter', $controller = new CRM_Core_Controller_Simple(
ts('Activity Filter'), NULL 'CRM_Activity_Form_ActivityFilter',
ts('Activity Filter'),
NULL,
FALSE, FALSE, TRUE
); );
$controller->set('contactId', $this->_contactId); $controller->set('contactId', $this->_contactId);
$controller->setEmbedded(TRUE); $controller->setEmbedded(TRUE);
...@@ -138,15 +141,19 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page { ...@@ -138,15 +141,19 @@ class CRM_Activity_Page_Tab extends CRM_Core_Page {
$this->assign('action', $this->_action); $this->assign('action', $this->_action);
// also create the form element for the activity links box // also create the form element for the activity links box
$controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_ActivityLinks', $controller = new CRM_Core_Controller_Simple(
ts('Activity Links'), NULL 'CRM_Activity_Form_ActivityLinks',
ts('Activity Links'),
NULL,
FALSE, FALSE, TRUE
); );
$controller->setEmbedded(TRUE); $controller->setEmbedded(TRUE);
$controller->run(); $controller->run();
} }
function delete() { 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'), ts('Activity Record'),
$this->_action $this->_action
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment