Changeset 920 for branches/features/purchaseOrders/grails-app/controllers
- Timestamp:
- May 7, 2011, 12:42:44 PM (14 years ago)
- Location:
- branches/features/purchaseOrders
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/purchaseOrders
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk merged eligible /branches/features/grailsUpgrade 889-911
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/features/purchaseOrders/grails-app/controllers/AppCoreController.groovy
r707 r920 58 58 59 59 // Build the plugins string. 60 def pluginProperties = grailsApplication.metadata.findAll {it.key.contains('plugin')} 61 pluginProperties.each() { 62 it.key = WordUtils.capitalize( (it.key + GString.EMPTY).split("\\.")[-1] ) 63 } 64 pluginProperties = pluginProperties.sort { p1, p2 -> p1.key.compareToIgnoreCase(p2.key) } 65 def plugins = pluginProperties.collect{ it.key + '-' + it.value }.join(", ") 60 def userPlugins = org.codehaus.groovy.grails.plugins.PluginManagerHolder.pluginManager.userPlugins 61 62 userPlugins = userPlugins.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 63 64 def plugins = userPlugins.collect{ 65 WordUtils.capitalize(it.name) + '-' + it.version 66 }.join(", ") 66 67 67 68 def sections = Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } -
branches/features/purchaseOrders/grails-app/controllers/AssetDetailedController.groovy
r885 r920 164 164 if(params?.format && params.format != "html") { 165 165 166 def dateFmt = { d ate ->167 formatDate(format: "EEE, dd-MMM-yyyy", date: date)166 def dateFmt = { domain, value -> 167 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 168 168 } 169 169 170 // def fmtAsset = { m ->170 // def fmtAsset = { d, m -> 171 171 // def r = '' 172 172 // def assetInstance = Asset.findByName(m) … … 184 184 // } 185 185 186 // def fmtSubAsset = { m ->186 // def fmtSubAsset = { d, m -> 187 187 // def r = '' 188 188 // m.each() { -
branches/features/purchaseOrders/grails-app/controllers/AssetSubItemDetailedController.groovy
r658 r920 60 60 if(params?.format && params.format != "html") { 61 61 62 def dateFmt = { d ate ->63 formatDate(format: "EEE, dd-MMM-yyyy", date: date)62 def dateFmt = { domain, value -> 63 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 64 64 } 65 65 -
branches/features/purchaseOrders/grails-app/controllers/InventoryItemDetailedController.groovy
r727 r920 292 292 if(params?.format && params.format != "html") { 293 293 294 def dateFmt = { d ate ->295 formatDate(format: "EEE, dd-MMM-yyyy", date: date)294 def dateFmt = { domain, value -> 295 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 296 296 } 297 297 … … 646 646 if(params?.format && params.format != "html") { 647 647 648 def dateFmt = { d ate ->649 formatDate(format: "EEE, dd-MMM-yyyy", date: date)648 def dateFmt = { domain, value -> 649 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 650 650 } 651 651 -
branches/features/purchaseOrders/grails-app/controllers/InventoryItemPurchaseDetailedController.groovy
r893 r920 143 143 if(params?.format && params.format != "html") { 144 144 145 def dateFmt = { d ate ->146 formatDate(format: "EEE, dd-MMM-yyyy", date: date)145 def dateFmt = { domain, value -> 146 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 147 147 } 148 148 -
branches/features/purchaseOrders/grails-app/controllers/TaskDetailedController.groovy
r871 r920 147 147 if(params?.format && params.format != "html") { 148 148 149 def dateFmt = { d ate ->150 formatDate(format: "EEE, dd-MMM-yyyy", date: date)149 def dateFmt = { domain, value -> 150 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 151 151 } 152 152 … … 308 308 if(params?.format && params.format != "html") { 309 309 310 def dateFmt = { d ate ->311 formatDate(format: "EEE, dd-MMM-yyyy", date: date)310 def dateFmt = { domain, value -> 311 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 312 312 } 313 313
Note: See TracChangeset
for help on using the changeset viewer.