summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-01-08 16:59:37 +0530
committerSashi202019-01-08 16:59:37 +0530
commit1ed6e60e8e4acfb819fdfdd2821401f171f3e545 (patch)
treee12e0c05bdb00b2665b3912287dd4542799bd0b9
parenta012a3b1054ab1947a6302b8808285601e97974c (diff)
downloadom_pssp-1ed6e60e8e4acfb819fdfdd2821401f171f3e545.tar.gz
om_pssp-1ed6e60e8e4acfb819fdfdd2821401f171f3e545.tar.bz2
om_pssp-1ed6e60e8e4acfb819fdfdd2821401f171f3e545.zip
Validated project title field for same title as approved/completed projects
-rwxr-xr-xproposal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/proposal.inc b/proposal.inc
index d574127..47017d1 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -328,7 +328,7 @@ function om_pssp_proposal_form_validate($form, &$form_state)
$query = db_select('om_pssp_proposal');
$query->fields('om_pssp_proposal');
$query->condition('project_title', $project_title);
- //$query->condition('id', $pref_id);
+ $query->condition(db_or()->condition('approval_status',1)->condition('approval_status',3));
$result = $query->execute()->rowCount();
//var_dump($result);die;
if ($result >= 1)