Changeset 281


Ignore:
Timestamp:
Jan 21, 2010, 7:06:51 AM (10 years ago)
Author:
gav
Message:

Change flash.warning to flash.errorMessage.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r278 r281  
    2525            flash.message = g.message(code: "asset.tree.import.success")
    2626        else
    27             flash.warning = g.message(code: result.error.code, args: result.error.args)
     27            flash.errorMessage = g.message(code: result.error.code, args: result.error.args)
    2828
    2929        redirect(action: importAssetTree)
     
    282282
    283283        if(result.error.code != "default.create.failure") {
    284             flash.warning = g.message(code: result.error.code, args: ["Asset"])
     284            flash.errorMessage = g.message(code: result.error.code, args: ["Asset"])
    285285        }
    286286
  • trunk/grails-app/views/shared/_messages.gsp

    r277 r281  
    22    <div class="message">${flash.message}</div>
    33</g:if>
    4 <g:if test="${flash.warning}">
    5     <div class="message_error">${flash.warning}</div>
     4<g:if test="${flash.errorMessage}">
     5    <div class="message_error">${flash.errorMessage}</div>
    66</g:if>
Note: See TracChangeset for help on using the changeset viewer.