Skip to content

Result flash message's i18n key of update and delete is wrong in Scaffold controller #9999

@nobeans

Description

@nobeans

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. Run grails create-domain-class book
  2. Run grails create-scaffold-controller for Book
  3. Add book.label=Book Label of resourceName and Book.label=Book Label of resourceClassName to messages.properties
  4. Run grails run-app
  5. When you create new book and update and delete, you'll see the following messages.

Expected Behaviour

  • Created -> "Book Label of resourceName 1 created"
  • Updated -> "Book Label of resourceName 1 updated"
  • Deleted -> "Book Label of resourceName 1 deleted`"

Actual Behaviour

  • Created -> "Book Label of resourceName 1 created"
  • Updated -> "Book Label of resourceClassName 1 updated"
  • Deleted -> "Book Label of resourceClassName 1 deleted"

Environment Information

  • Operating System: Mac OS X
  • Grails Version: 3.1.8
  • JDK Version: 1.8.0_77

Example Application

No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions