From dc49a4d7f1096058feb12838e3a0fe01abfd30b7 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 23 Aug 2024 14:44:25 +1000 Subject: [PATCH] [REF] Fix undefined constant on closed batches --- CRM/Batch/BAO/Batch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Batch/BAO/Batch.php b/CRM/Batch/BAO/Batch.php index c3010b158e15..663072d4ef34 100644 --- a/CRM/Batch/BAO/Batch.php +++ b/CRM/Batch/BAO/Batch.php @@ -440,7 +440,7 @@ public function links($context = NULL) { 'url' => 'civicrm/financial/batch', 'qs' => 'reset=1&action=update&id=%%id%%&context=1', 'title' => ts('Edit Batch'), - 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::EDIT), + 'weight' => CRM_Core_Action::getWeight(CRM_Core_Action::UPDATE), ], 'close' => [ 'name' => ts('Close'),