summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202020-07-02 14:03:03 +0530
committerSashi202020-07-02 14:03:03 +0530
commit4cb6091992aadcbda39ceb514b201223f0624837 (patch)
treee34a1a14f108a0314df46c8889d1ece4b7af1166
parent8b353af26d2c71d584d7a53335aa3429b7307980 (diff)
downloadcfd_case_study-4cb6091992aadcbda39ceb514b201223f0624837.tar.gz
cfd_case_study-4cb6091992aadcbda39ceb514b201223f0624837.tar.bz2
cfd_case_study-4cb6091992aadcbda39ceb514b201223f0624837.zip
Add new status in manage proposal
-rwxr-xr-xmanage_proposal.inc6
-rwxr-xr-xproposal.inc4
2 files changed, 8 insertions, 2 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 73575d7..d21093a 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -58,6 +58,9 @@ function cfd_case_study_proposal_all()
case 3:
$approval_status = 'Completed';
break;
+ case 5:
+ $approval_status = 'On Hold';
+ break;
default:
$approval_status = 'Unknown';
break;
@@ -666,6 +669,9 @@ function cfd_case_study_proposal_status_form($form, &$form_state)
case 3:
$proposal_status = t('Completed');
break;
+ case 5:
+ $approval_status = t('On Hold');
+ break;
default:
$proposal_status = t('Unkown');
break;
diff --git a/proposal.inc b/proposal.inc
index 35b3176..3159704 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -489,10 +489,10 @@ function cfd_case_study_proposal_form_validate($form, &$form_state)
form_set_error('solver_used_text', t('Minimum charater limit is 7 charaters, please check the length of the solver used'));
} //strlen($form_state['values']['project_title']) < 10
} //$form_state['values']['project_title'] != ''
- else
+ /*else
{
form_set_error('solver_used_text', t('Solver used cannot be empty'));
- }
+ }*/
if(strtotime(date($form_state['values']['expected_date_of_completion'])) < time())
{
form_set_error('expected_date_of_completion', t('Completion date should not be earlier than proposal date'));