Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/Update entity not working using Grails 2.3 #19

Open
abendada opened this issue Sep 27, 2013 · 1 comment
Open

Create/Update entity not working using Grails 2.3 #19

abendada opened this issue Sep 27, 2013 · 1 comment

Comments

@abendada
Copy link

Hi,
I notice the following issues:
using the Person example when trying to add a new Person it failed with the message "Property [firstName] of class [class Person] cannot be null"
when i try to modify a person nothing happen.

to get it work i needed to change the following line
obj.properties = request.JSON.data
to
obj.properties = request.JSON
within create and update action
Regards

@padcom
Copy link
Owner

padcom commented Sep 28, 2013

Could you test the same solution against grails 2.0, 2.1 and 2.2? I it'll
work could you propose a merge request with the change?

2013/9/27 abendada [email protected]

Hi,
I notice the following issues:
using the Person example when trying to add a new Person it failed with
the message "Property [firstName] of class [class Person] cannot be null"
when i try to modify a person nothing happen.

to get it work i needed to change the following line
obj.properties = request.JSON.data
to
obj.properties = request.JSON
within create and update action
Regards


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants