thanks!

Joe Murray, PhD
President, JMA Consulting
joe.murray@jmaconsulting.biz
skype JosephPMurray twitter JoeMurray
416.466.1281


On Tue, May 14, 2013 at 11:05 AM, Edzelopez <notifications@github.com>wrote:

> In grantprograms.php:
>
> > @@ -115,7 +115,8 @@ function grantprograms_civicrm_grantAssessment(&$params) {
> >      $programParams = array( 'id' => $params['grant_program_id'] );
> >      $grantProgram = CRM_Grant_BAO_GrantProgram::retrieve($programParams, $defaults);
> >      $algoType = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $grantProgram->allocation_algorithm, 'grouping');
> > -    if ($algoType == 'immediate' && !CRM_Utils_Array::value('manualEdit', $params) && ($params['status_id'] == 1 || $params['status_id'] == 2 || $params['status_id'] == 5)) {
>
> I checked the code, maybe this is an old merge, I've handled it using the
> names rather than values
>
> if ($algoType == 'immediate' && !CRM_Utils_Array::value('manualEdit',
> $params) && ($params['status_id'] == $grantStatuses['Submitted'] ||
> $params['status_id'] == $grantStatuses['Approved'] || $params['status_id']
> == $grantStatuses['Awaiting Information'])) {
> $params['amount_granted'] = quickAllocate($grantProgram, $params);
> }
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/JMAConsulting/biz.jmaconsulting.grantprograms/pull/33/files#r4215359>
> .
>