From ed9c4a8e6af1e2f8c55d56568c708111b6438985 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Fri, 22 Dec 2023 18:15:52 -0500 Subject: [PATCH] remove incorrect message that grant could not be deleted --- ext/civigrant/CRM/Grant/Form/Task/Delete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/civigrant/CRM/Grant/Form/Task/Delete.php b/ext/civigrant/CRM/Grant/Form/Task/Delete.php index c6f3036cac..a6911e6fb0 100644 --- a/ext/civigrant/CRM/Grant/Form/Task/Delete.php +++ b/ext/civigrant/CRM/Grant/Form/Task/Delete.php @@ -63,7 +63,7 @@ class CRM_Grant_Form_Task_Delete extends CRM_Grant_Form_Task { public function postProcess() { $deleted = $failed = 0; foreach ($this->_grantIds as $grantId) { - if (CRM_Grant_BAO_Grant::del($grantId)) { + if (CRM_Grant_BAO_Grant::deleteRecord(['id' => $grantId])) { $deleted++; } else { -- 2.25.1