-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Improving default values in embedded forms #7072
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
Comments
Could you please submit a test case ? The best would be a PR with a failing TC - or a least a gist. (The TC should be minimal and contains only the requires step to reproduce the issue) |
@vicb This is not a bug, it's a feature request. I have some ideas for the 2013/2/15 Victor Berchet notifications@github.com
|
Sorry, something went wrong.
Well, you ask for a way to "fix" things. If it is a feature request and not a bug report, there is nothing to fix but something to implement. and does the default value of the form A contains an object for B created with its default values or does it contain null ? |
@Nomack84 have you searched the issue tracker for a similar demand ? There might be some similar "issues" IIRC. |
Why would you lose the default values of the object's constructor? |
@stof By "fix" I mean that maybe I was doing something wrong. Maybe wasn't the right word to use. |
for the prototype defaults, see #6910 |
So is this a duplicate of #5095 really? |
But then you need to rewrite the defaults values in the form...isn't that ugly? As I say, I'm not sure if is possible to implement what I suggest, but I think is doable. |
@bschussek Yes, I'll close this. |
If I have a form 'A' which has an embedded form 'B' that map an object, and that object has defaults values in the constructor, with the current implementation I lose those defaults values when displaying the 'A' form. Of course this is bad...
Is there a way to fix this?
The text was updated successfully, but these errors were encountered: