Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/29/08 13:31:40 (7 months ago)
Author:
bmckown
Message:

complex-obs branch: Fixed bug - couldn't save a concept.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/complex-obs/src/api/org/openmrs/api/impl/ConceptServiceImpl.java

    r4417 r4462  
    128128         */ 
    129129    public Concept saveConcept(Concept concept) throws APIException { 
     130         
     131        // make sure the administrator hasn't turned off concept editing 
    130132                checkIfLocked(); 
     133                 
     134                // set that creator/dateCreated properties on the concept and child objects 
    131135                this.modifyCollections(concept); 
    132                 this.updateConceptWord(concept); 
    133                 return dao.saveConcept(concept);     
     136                 
     137                Concept conceptToReturn = dao.saveConcept(concept); 
     138                 
     139                // add/remove entries in the concept_word table (used for searching) 
     140                this.updateConceptWord(conceptToReturn); 
     141                 
     142                return conceptToReturn; 
    134143        } 
    135144