Ignore:
Timestamp:
Apr 13, 2010, 11:02:59 AM (14 years ago)
Author:
gav
Message:

Refactor entry creation to provide correct error messages when trying to create a new entry on a complete task.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/TaskService.groovy

    r478 r482  
    273273            }
    274274
    275             if(result.entryInstance.hasErrors() || !result.entryInstance.save())
    276                 return fail(field:"task", code:"default.create.failure")
    277 
    278             // Success.
    279             return result
    280 
    281         } //end withTransaction
     275            // Success.
     276            return result
     277
     278        } // end withTransaction
    282279    } // end saveEntry()
    283280
Note: See TracChangeset for help on using the changeset viewer.