Api Test fix
authorjitendrapurohit <jituraj7760@gmail.com>
Wed, 9 Jul 2014 05:33:55 +0000 (11:03 +0530)
committerjitendrapurohit <jituraj7760@gmail.com>
Wed, 9 Jul 2014 05:33:55 +0000 (11:03 +0530)
CRM/Member/BAO/MembershipBlock.php

index 88465ae1e7b18058f9d8d004b0d98df72eebf890..3e4dfaed441614b8369cdcc01d5101676ed727f6 100644 (file)
@@ -55,8 +55,8 @@ class CRM_Member_BAO_MembershipBlock extends CRM_Member_DAO_MembershipBlock {
     $dao = new CRM_Member_DAO_MembershipBlock();
     $dao->copyValues($params);
     $dao->id = CRM_Utils_Array::value('id', $params);
-    CRM_Utils_Hook::post($hook, 'MembershipBlock', $dao->id, $dao);
     $dao->save();
+    CRM_Utils_Hook::post($hook, 'MembershipBlock', $dao->id, $dao);
     return $dao;
   }