Ignore:
Timestamp:
May 7, 2011, 12:42:44 PM (14 years ago)
Author:
gav
Message:

Svn merge -r874:r919 trunk/ into branches/features/purchaseOrders.
This brings the purchaseOrder branch fully up to date.

Location:
branches/features/purchaseOrders
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders

  • branches/features/purchaseOrders/grails-app/controllers/AppCoreController.groovy

    r707 r920  
    5858
    5959        // 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(", ")
    6667
    6768        def sections = Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
  • branches/features/purchaseOrders/grails-app/controllers/AssetDetailedController.groovy

    r885 r920  
    164164        if(params?.format && params.format != "html") {
    165165
    166             def dateFmt = { date ->
    167                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     166            def dateFmt = { domain, value ->
     167                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    168168            }
    169169
    170 //             def fmtAsset = { m ->
     170//             def fmtAsset = { d, m ->
    171171//                     def r = ''
    172172//                     def assetInstance = Asset.findByName(m)
     
    184184//             }
    185185
    186 //             def fmtSubAsset = { m ->
     186//             def fmtSubAsset = { d, m ->
    187187//                     def r = ''
    188188//                     m.each() {
  • branches/features/purchaseOrders/grails-app/controllers/AssetSubItemDetailedController.groovy

    r658 r920  
    6060        if(params?.format && params.format != "html") {
    6161
    62             def dateFmt = { date ->
    63                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     62            def dateFmt = { domain, value ->
     63                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    6464            }
    6565
  • branches/features/purchaseOrders/grails-app/controllers/InventoryItemDetailedController.groovy

    r727 r920  
    292292        if(params?.format && params.format != "html") {
    293293
    294             def dateFmt = { date ->
    295                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     294            def dateFmt = { domain, value ->
     295                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    296296            }
    297297
     
    646646        if(params?.format && params.format != "html") {
    647647
    648             def dateFmt = { date ->
    649                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     648            def dateFmt = { domain, value ->
     649                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    650650            }
    651651
  • branches/features/purchaseOrders/grails-app/controllers/InventoryItemPurchaseDetailedController.groovy

    r893 r920  
    143143        if(params?.format && params.format != "html") {
    144144
    145             def dateFmt = { date ->
    146                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     145            def dateFmt = { domain, value ->
     146                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    147147            }
    148148
  • branches/features/purchaseOrders/grails-app/controllers/TaskDetailedController.groovy

    r871 r920  
    147147        if(params?.format && params.format != "html") {
    148148
    149             def dateFmt = { date ->
    150                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     149            def dateFmt = { domain, value ->
     150                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    151151            }
    152152
     
    308308        if(params?.format && params.format != "html") {
    309309
    310             def dateFmt = { date ->
    311                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     310            def dateFmt = { domain, value ->
     311                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    312312            }
    313313
Note: See TracChangeset for help on using the changeset viewer.