Skip to content

Commit

Permalink
Merge pull request #495 from Intelehealth/470_fixed
Browse files Browse the repository at this point in the history
occupation field is not mandatory
  • Loading branch information
Amal Afroz Alam authored Jul 19, 2018
2 parents 2c5ae70 + 33fe4f4 commit bbe420f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public void onClick(DialogInterface dialog, int which) {


//prajwal
if(!mFirstName.getText().toString().equals("") && !mLastName.getText().toString().equals("") && !mOccupation.getText().toString().equals("")
if(!mFirstName.getText().toString().equals("") && !mLastName.getText().toString().equals("")
&& !mCity.getText().toString().equals("") && !countryText.getText().toString().equals("") &&
!stateText.getText().toString().equals("") && !mDOB.getText().toString().equals("") && !mAge.getText().toString().equals(""))
{
Expand Down Expand Up @@ -704,10 +704,10 @@ public void onClick(DialogInterface dialog, int which) {
mAge.setError(getString(R.string.error_field_required));
}

if(mOccupation.getText().toString().equals(""))
/* if(mOccupation.getText().toString().equals(""))
{
mOccupation.setError(getString(R.string.error_field_required));
}
}*/

/* if(casteText.getText().toString().equals(""))
{
Expand Down

0 comments on commit bbe420f

Please sign in to comment.