projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM_Utils_Recent - Use hook listener to delete items
[civicrm-core.git]
/
CRM
/
Grant
/
BAO
/
Grant.php
diff --git
a/CRM/Grant/BAO/Grant.php
b/CRM/Grant/BAO/Grant.php
index bc33e04c8070ee600643c5a20239b2c9b24c3b27..c2e4dad3c0a4ca6358bd00292187cc9a61ba98d0 100644
(file)
--- a/
CRM/Grant/BAO/Grant.php
+++ b/
CRM/Grant/BAO/Grant.php
@@
-259,13
+259,6
@@
class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
$grant->find();
$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);
if ($grant->fetch()) {
$results = $grant->delete();
CRM_Utils_Hook::post('delete', 'Grant', $grant->id, $grant);