X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FGrant%2FBAO%2FGrant.php;h=11d673128c925dc8a12158ec6d233635da311bed;hb=e36fd3bcbdf7abf8968fa6de2c6fb1f4e76919d3;hp=52f998b3c2ba5a814d56d223485521804b4acab2;hpb=1e6ea7e36b5815a6711674a148c44b6d75bdcf47;p=civicrm-core.git diff --git a/CRM/Grant/BAO/Grant.php b/CRM/Grant/BAO/Grant.php index 52f998b3c2..11d673128c 100644 --- a/CRM/Grant/BAO/Grant.php +++ b/CRM/Grant/BAO/Grant.php @@ -1,9 +1,9 @@ 'civicrm_grant', 'note' => $params['note'] = $params['note'] ? $params['note'] : "null", @@ -278,7 +283,7 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { 'modified_date' => date('Ymd'), ); - CRM_Core_BAO_Note::add($noteParams, $ids['note']); + CRM_Core_BAO_Note::add($noteParams, (array) CRM_Utils_Array::value('note', $ids)); } // Log the information on successful add/edit of Grant $logParams = array( @@ -309,11 +314,13 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { /** * Function to delete the Contact * - * @param int $cid contact id + * @param $id + * + * @return bool + * @internal param int $cid contact id * * @access public * @static - * */ static function deleteContact($id) { $grant = new CRM_Grant_DAO_Grant(); @@ -325,8 +332,9 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { /** * Function to delete the grant * - * @param int $id grant id + * @param int $id grant id * + * @return bool|mixed * @access public * @static * @@ -412,7 +420,9 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant { /** * Function to get grant record count for a Contact * - * @param int $contactId Contact ID + * @param $contactID + * + * @internal param int $contactId Contact ID * * @return int count of grant records * @access public