Fixed bug in NLSongsDB implementation.
This commit is contained in:
		@@ -27,10 +27,7 @@ public class NLSongsDB {
 | 
				
			|||||||
    /// ### Common
 | 
					    /// ### Common
 | 
				
			||||||
    public def save(def model) {
 | 
					    public def save(def model) {
 | 
				
			||||||
        if (model.id > 0) return update(model)
 | 
					        if (model.id > 0) return update(model)
 | 
				
			||||||
        else {
 | 
					        else return create(model) }
 | 
				
			||||||
            if (create(model) > 0) return model
 | 
					 | 
				
			||||||
            else return null } }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// ### Services
 | 
					    /// ### Services
 | 
				
			||||||
    public Service findService(int id) {
 | 
					    public Service findService(int id) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user