Changeset 1788


Ignore:
Timestamp:
Dec 14, 2012, 2:28:01 PM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #453: Incorrect registration of case if consent form is registered before blood referral form and no pathology referral form exists

This should fix the problem with the registration wizard. Should verify that everything is ok also by checking on the relevant cases on the production server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/BloodRegistrationServlet.java

    r1775 r1788  
    218218          Sample consentCase = Sample.getById(dc, copyConsentId.intValue());
    219219          Consent.copyConsentAnnotations(dc, consentCase, blood);
     220          if (consentCase.getParentType() == null)
     221          {
     222            // Temporary case for holding consent information that should deleted
     223            dc.deleteItem(consentCase);
     224          }
     225          jsonMessages.add("Consent copied from case '" + consentCase.getName() + "'");
    220226        }
    221227       
Note: See TracChangeset for help on using the changeset viewer.