Changeset 911 for branches


Ignore:
Timestamp:
Apr 28, 2011, 5:40:44 PM (8 years ago)
Author:
gav
Message:

Update export plugin format closures to use new format.

Location:
branches/features/grailsUpgrade/grails-app/controllers
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/features/grailsUpgrade/grails-app/controllers/AssetDetailedController.groovy

    r885 r911  
    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/grailsUpgrade/grails-app/controllers/AssetSubItemDetailedController.groovy

    r658 r911  
    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/grailsUpgrade/grails-app/controllers/InventoryItemDetailedController.groovy

    r727 r911  
    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/grailsUpgrade/grails-app/controllers/InventoryItemPurchaseDetailedController.groovy

    r717 r911  
    142142        if(params?.format && params.format != "html") {
    143143
    144             def dateFmt = { date ->
    145                 formatDate(format: "EEE, dd-MMM-yyyy", date: date)
     144            def dateFmt = { domain, value ->
     145                formatDate(format: "EEE, dd-MMM-yyyy", date: value)
    146146            }
    147147
  • branches/features/grailsUpgrade/grails-app/controllers/TaskDetailedController.groovy

    r871 r911  
    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.