Skip to content

Commit

Permalink
Revert "BASW-123: Prevent cancelling membership when cancelling linke…
Browse files Browse the repository at this point in the history
…d offline installment contribution"

This reverts commit a393093. The reason is that we don't need this patch anymore since
we will depend on disabling contributioncancelactions core extension instead.
  • Loading branch information
omarabuhussein authored and erawat committed Sep 27, 2021
1 parent 8c01c92 commit 5a0e0a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions CRM/Core/DAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,6 @@ public function table() {
*/
public function save($hook = TRUE) {
$eventID = uniqid();
if ($hook) {
CRM_Utils_Hook::preSave($this);
}

if (!empty($this->id)) {
if ($hook) {
$preEvent = new \Civi\Core\DAO\Event\PreUpdate($this);
Expand Down
13 changes: 0 additions & 13 deletions CRM/Utils/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -1575,19 +1575,6 @@ public static function alterAPIPermissions($entity, $action, &$params, &$permiss
);
}

/**
* @param CRM_Core_DAO $dao
*
* @return mixed
*/
public static function preSave(&$dao) {
$hookName = 'civicrm_preSave_' . $dao->getTableName();
return self::singleton()->invoke(array('dao'), $dao,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
$hookName
);
}

/**
* @param CRM_Core_DAO $dao
*
Expand Down

0 comments on commit 5a0e0a7

Please sign in to comment.