summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-01-08 12:23:16 +0530
committerGitHub2019-01-08 12:23:16 +0530
commitd903733d7b28b361071f187546f52bcbef10c654 (patch)
treef6ae4aacfa090db9587555fca8a92244e8034452
parent0635a551e1f26ebdba75a2889e6a57ae9bb587c3 (diff)
parentf66fd56e27c1ef9277e71d095f2cc242bcb518c6 (diff)
downloaddwsim_flowsheet-d903733d7b28b361071f187546f52bcbef10c654.tar.gz
dwsim_flowsheet-d903733d7b28b361071f187546f52bcbef10c654.tar.bz2
dwsim_flowsheet-d903733d7b28b361071f187546f52bcbef10c654.zip
Merge pull request #34 from Sashi20/drupal_7.x
Modified validation for project title field to check if same proposal…
-rwxr-xr-xproposal.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/proposal.inc b/proposal.inc
index 2087575..c344d97 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -468,6 +468,7 @@ function dwsim_flowsheet_proposal_form_validate($form, &$form_state)
$query = db_select('dwsim_flowsheet_proposal');
$query->fields('dwsim_flowsheet_proposal');
$query->condition('project_title', $project_title);
+ $query->condition('approval_status',1)
$result = $query->execute()->rowCount();
if ($result >= 1)
{