Changeset 401
- Timestamp:
- Feb 23, 2010, 12:21:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AddressService.groovy
r397 r401 56 56 57 57 private checkForOwner(params) { 58 def manufacturerInstance59 def supplierInstance60 def personInstance61 def siteInstance62 58 63 59 if(params.manufacturer?.id) 64 manufacturerInstance = Manufacturer.get(params.manufacturer.id)60 return Manufacturer.exists(params.manufacturer.id) 65 61 if(params.supplier?.id) 66 supplierInstance = Supplier.get(params.supplier.id)62 return Supplier.exists(params.supplier.id) 67 63 if(params.person?.id) 68 personInstance = Person.get(params.person.id)64 return Person.exists(params.person.id) 69 65 if(params.site?.id) 70 siteInstance = Site.get(params.site?.id)66 return Site.exists(params.site.id) 71 67 72 if(!manufacturerInstance && !supplierInstance && !personInstance && !siteInstance) 73 return false 74 75 return true 68 return false 76 69 } 77 70
Note: See TracChangeset
for help on using the changeset viewer.