summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-01-08 12:06:09 +0530
committerGitHub2019-01-08 12:06:09 +0530
commit0635a551e1f26ebdba75a2889e6a57ae9bb587c3 (patch)
tree9b4b6a54b754c62ea601a2fb7d183a417628dfeb
parent805102a54dfff6193c9c796db6731c35a3b497e0 (diff)
parentdad6a2e659206c6c58fc5c5753b0387c4e1c8f2e (diff)
downloaddwsim_flowsheet-0635a551e1f26ebdba75a2889e6a57ae9bb587c3.tar.gz
dwsim_flowsheet-0635a551e1f26ebdba75a2889e6a57ae9bb587c3.tar.bz2
dwsim_flowsheet-0635a551e1f26ebdba75a2889e6a57ae9bb587c3.zip
Merge pull request #33 from Sashi20/drupal_7.x
Modified validation for state and city fields
-rwxr-xr-xproposal.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/proposal.inc b/proposal.inc
index c9a4200..2087575 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -511,17 +511,17 @@ function dwsim_flowsheet_proposal_form_validate($form, &$form_state)
} //$form_state['values']['country'] == 'Others'
else
{
- if ($form_state['values']['country'] == '')
+ if ($form_state['values']['country'] == '0')
{
form_set_error('country', t('Select country name'));
// $form_state['values']['country'] = $form_state['values']['other_country'];
} //$form_state['values']['country'] == ''
- if ($form_state['values']['all_state'] == '')
+ if ($form_state['values']['all_state'] == '0')
{
form_set_error('all_state', t('Select state name'));
// $form_state['values']['country'] = $form_state['values']['other_country'];
} //$form_state['values']['all_state'] == ''
- if ($form_state['values']['city'] == '')
+ if ($form_state['values']['city'] == '0')
{
form_set_error('city', t('Select city name'));
// $form_state['values']['country'] = $form_state['values']['other_country'];