From dad6a2e659206c6c58fc5c5753b0387c4e1c8f2e Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 8 Jan 2019 12:05:26 +0530 Subject: Modified validation for state and city fields --- proposal.inc | 6 +++--- 1 file 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']; -- cgit