File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/web/org/codehaus/groovy/grails/web/servlet Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,18 @@ public void next() {
4141 current .clear ();
4242 current = (HashMap )next .clone ();
4343 next .clear ();
44- reassociateObjectsWithErrors ();
44+ reassociateObjectsWithErrors (current );
4545 }
4646
47- private void reassociateObjectsWithErrors () {
48- for (Iterator i = current .keySet ().iterator (); i .hasNext ();) {
47+ private void reassociateObjectsWithErrors (Map scope ) {
48+ for (Iterator i = scope .keySet ().iterator (); i .hasNext ();) {
4949 Object key = i .next ();
50- Object value = current .get (key );
50+ Object value = scope .get (key );
51+ if (value instanceof Map ) {
52+ reassociateObjectsWithErrors ((Map )value );
53+ }
5154 String errorsKey = ERRORS_PREFIX + System .identityHashCode (value );
52- Object errors = current .get (errorsKey );
55+ Object errors = scope .get (errorsKey );
5356 if (value !=null && errors != null ) {
5457 MetaClass mc = GroovySystem .getMetaClassRegistry ().getMetaClass (value .getClass ());
5558 if (mc .hasProperty (value , ERRORS_PROPERTY )!=null ) {
You can’t perform that action at this time.
0 commit comments