remove incorrect message that grant could not be deleted
authorJon Goldberg <jon@megaphonetech.com>
Fri, 22 Dec 2023 23:15:52 +0000 (18:15 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Fri, 22 Dec 2023 23:15:52 +0000 (18:15 -0500)
ext/civigrant/CRM/Grant/Form/Task/Delete.php

index c6f3036cac2811f594e13579cc399252adc699ba..a6911e6fb0346c35ffe4ca3234c8f0f8f7e8e905 100644 (file)
@@ -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 {