CRM_Utils_Recent - Use hook listener to delete items
[civicrm-core.git] / CRM / Grant / BAO / Grant.php
index bc33e04c8070ee600643c5a20239b2c9b24c3b27..c2e4dad3c0a4ca6358bd00292187cc9a61ba98d0 100644 (file)
@@ -259,13 +259,6 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
 
     $grant->find();
 
-    // delete the recently created Grant
-    $grantRecent = [
-      'id' => $id,
-      'type' => 'Grant',
-    ];
-    CRM_Utils_Recent::del($grantRecent);
-
     if ($grant->fetch()) {
       $results = $grant->delete();
       CRM_Utils_Hook::post('delete', 'Grant', $grant->id, $grant);