Skip to content
Snippets Groups Projects
Commit f9beac6f authored by Edselopez's avatar Edselopez
Browse files

Freeze Prior Years Assessment Field

parent dcf44347
No related branches found
No related tags found
No related merge requests found
......@@ -473,6 +473,8 @@ function grantprograms_civicrm_buildForm($formName, &$form) {
$form->add('text', 'prev_assessment', ts('Prior Year\'s Assessment'));
$priority = CRM_Grant_BAO_GrantProgram::getPriorities($form->_defaultValues['grant_program_id'], $form->getVar('_contactID'));
$form->setDefaults(array('prev_assessment' => $priority));
//Freeze Prior Year's Assessment field
$form->_elements[$form->_elementIndex['prev_assessment']]->freeze();
// Filter out grant being edited from search results
$form->assign('grant_id', $form->getVar('_id'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment