Permalink
Browse files

If the patient_data is null Patient Portal get the pid for new patien…

…t is as null, so fixed to get as 1

Signed-off-by: Jacob T.Paul <jacob@zhservices.com>
  • Loading branch information...
1 parent fcf6f1c commit 738eb1ce5aed77c80c222842c173ed2cba963729 @zhhealthcare zhhealthcare committed with bradymiller Jun 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 myportal/soap_service/server_side.php
View
2 myportal/soap_service/server_side.php
@@ -706,7 +706,7 @@ public function valid($credentials){
}
else{
$okN = 1;
- $prow = sqlQuery("SELECT MAX(pid)+1 AS pid FROM patient_data");
+ $prow = sqlQuery("SELECT IFNULL(MAX(pid)+1,1) AS pid FROM patient_data");
}
}
if($okE==1 || $okN == 2 || $okN == 1 || $okO == 1){

0 comments on commit 738eb1c

Please sign in to comment.