diff options
author | Sashi20 | 2019-01-08 12:06:09 +0530 |
---|---|---|
committer | GitHub | 2019-01-08 12:06:09 +0530 |
commit | 0635a551e1f26ebdba75a2889e6a57ae9bb587c3 (patch) | |
tree | 9b4b6a54b754c62ea601a2fb7d183a417628dfeb | |
parent | 805102a54dfff6193c9c796db6731c35a3b497e0 (diff) | |
parent | dad6a2e659206c6c58fc5c5753b0387c4e1c8f2e (diff) | |
download | dwsim_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-x | proposal.inc | 6 |
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']; |