From fa64b074e4d365aa4f0a903116b9569e4b96ebe7 Mon Sep 17 00:00:00 2001 From: Yasuharu Nakano Date: Fri, 17 Jun 2016 00:55:10 +0900 Subject: [PATCH] Fix #9999: replace "${resourceClassName}.label" with "${resourceName}.label" in RestfulController --- .../src/main/groovy/grails/rest/RestfulController.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy b/grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy index 091b32439e2..b40b1863c1c 100644 --- a/grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy +++ b/grails-plugin-rest/src/main/groovy/grails/rest/RestfulController.groovy @@ -160,7 +160,7 @@ class RestfulController { updateResource instance request.withFormat { form multipartForm { - flash.message = message(code: 'default.updated.message', args: [message(code: "${resourceClassName}.label".toString(), default: resourceClassName), instance.id]) + flash.message = message(code: 'default.updated.message', args: [message(code: "${resourceName}.label".toString(), default: resourceClassName), instance.id]) redirect instance } '*'{ @@ -193,7 +193,7 @@ class RestfulController { request.withFormat { form multipartForm { - flash.message = message(code: 'default.deleted.message', args: [message(code: "${resourceClassName}.label".toString(), default: resourceClassName), instance.id]) + flash.message = message(code: 'default.deleted.message', args: [message(code: "${resourceName}.label".toString(), default: resourceClassName), instance.id]) redirect action:"index", method:"GET" } '*'{ render status: NO_CONTENT } // NO CONTENT STATUS CODE