Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
domainSuffix ignored by views #10023
I have upgraded an app from 2.4 to 3.1.7 and notice issues with scaffolding. In my 2.4 app, I had in Config.groovy:
And I'm pretty sure that was added by default, which means this will affect a lot of people.
In my controller's index method (rendered by default with the list scaffolding view), this line worked:
possibleDups is a list that corresponded with companyInstanceList, and the view rendered perfectly.
After upgrading to 3.1.7, both the main body (list) and pagination were empty. After testing, I discovered the following:
I tested by explicitly setting model variable names::
domainSuffix is also ignored in static scaffolding, as views generated with
look for companyList, not companyInstanceList, etc.
Right now, the workaround is to:
If this was intentional, the Upgrading and Scaffolding sections of the documentation should be updated to prevent confusion.
I don't think so. I will just close this issue. Feel free to create a similar one at https://github.com/grails3-plugins/scaffolding/issues if you like.