Ignore:
Timestamp:
Nov 16, 2010, 6:30:11 PM (11 years ago)
Author:
work@…
Message:
  • resolving issue #197 where the study wizard breaks is flash.errors does not contain a map which it expects. Probably because elsewhere in the application the flash.errors is also being set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/wizard/common/_error.gsp

    r959 r1149  
    1515         */
    1616%>
    17 <g:if test="${errors}">
     17<g:if test="${wizardErrors}">
    1818        <div id="wizardError" class="error" title="errors">
    19                 <g:each in="${errors}" var="error" status="e">
     19                <g:each in="${wizardErrors}" var="error" status="e">
    2020                        <p>
    2121                                <g:if test="${!e}"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 50px 0;"></span></g:if>
     
    2626        <script type="text/javascript">
    2727                // mark error fields
    28                 <g:each in="${errors}" var="error">
     28                <g:each in="${wizardErrors}" var="error">
    2929                var element = $("input:[name='${error.key}'], input:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}'], select:[name='${error.key}'], select:[name='${error.key.toLowerCase().replaceAll("([^a-z0-9])","_")}']");
    3030                 <g:if test="${error.value['dynamic']}">
Note: See TracChangeset for help on using the changeset viewer.