diff options
author | deva <deva> | 2011-08-02 08:00:20 +0000 |
---|---|---|
committer | deva <deva> | 2011-08-02 08:00:20 +0000 |
commit | ed9e290b441a6486c576c2e2e4baa69fa0f3ed37 (patch) | |
tree | 759ace8ca615e3a4167a5e783297cc761b89b992 /server/src/journal.cc | |
parent | 23f39df8b8edeacfa5821050abbdc855acb2edd6 (diff) |
New 'open course' feature.
Diffstat (limited to 'server/src/journal.cc')
-rw-r--r-- | server/src/journal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/journal.cc b/server/src/journal.cc index c38246f..fc4203c 100644 --- a/server/src/journal.cc +++ b/server/src/journal.cc @@ -55,7 +55,7 @@ void Journal::addEntry(Transaction &transaction, Commit &commit, if(entrylist.size() == 0) { //if(user() == "") setUser(transaction.user); - if(patientID() == "")setPatientID(transaction.cpr); + if(patientID() == "") setPatientID(transaction.patientid); } DEBUG(journal, "addEntry: template(%s)\n", @@ -64,7 +64,7 @@ void Journal::addEntry(Transaction &transaction, Commit &commit, // Test if the username or the cpr has changed... // if so, commit and clear the list. #if 0 // no - it breaks things... - if(user() != transaction.user || patientID() != transaction.cpr) { + if(user() != transaction.user || patientID() != transaction.patientid) { this->commit(); entrylist.clear(); } |