Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix #14 - request access in service #18

Merged
merged 1 commit into from

3 participants

@bluesliverx

No description provided.

@unicolet

+1 please merge and release

@limcheekin
Owner

Sorry for slow response. Thanks for the fix. I will release the fix sooner possible time.

@limcheekin limcheekin merged commit a489a56 into limcheekin:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 24, 2012
  1. @bluesliverx
This page is out of date. Refresh to see the latest.
View
4 grails-app/services/org/grails/jquery/validation/ui/JqueryValidationService.groovy
@@ -345,7 +345,7 @@ class JqueryValidationService {
break
case "unique":
case "validator":
- javaScriptConstraintCode = createRemoteJavaScriptConstraints(request.contextPath, constraintName, constrainedProperty.owningClass.name, constrainedProperty.propertyName)
+ javaScriptConstraintCode = createRemoteJavaScriptConstraints(RequestContextHolder.requestAttributes.contextPath, constraintName, constrainedProperty.owningClass.name, constrainedProperty.propertyName)
break
}
} else {
@@ -354,7 +354,7 @@ class JqueryValidationService {
javaScriptConstraintCode = "$constraintName: ${customConstraintsMap[constraintName]}"
} else {
log.info "${constraintName} constraint not found even in the CustomConstraintsMap, use custom constraint and remote validation"
- javaScriptConstraintCode = createRemoteJavaScriptConstraints(request.contextPath, constraintName, constrainedProperty.owningClass.name, constrainedProperty.propertyName)
+ javaScriptConstraintCode = createRemoteJavaScriptConstraints(RequestContextHolder.requestAttributes.contextPath, constraintName, constrainedProperty.owningClass.name, constrainedProperty.propertyName)
}
}
if (javaScriptConstraintCode) {
Something went wrong with that request. Please try again.