From 221e720027170612170418bfe2a9cdc34bde9e65 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 10 Jan 2021 10:05:39 -0500 Subject: [PATCH] timeline fix after buttons changes --- CRM/Case/Form/CaseView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/Form/CaseView.php b/CRM/Case/Form/CaseView.php index f2300dadb2..9e71a0cd1a 100644 --- a/CRM/Case/Form/CaseView.php +++ b/CRM/Case/Form/CaseView.php @@ -425,7 +425,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { $session = CRM_Core_Session::singleton(); $session->pushUserContext($url); - if (!empty($params['timeline_id']) && !empty($_POST['_qf_CaseView_next'])) { + if (!empty($params['timeline_id']) && $buttonName == '_qf_CaseView_next') { civicrm_api3('Case', 'addtimeline', [ 'case_id' => $this->_caseID, 'timeline' => $params['timeline_id'], -- 2.25.1