-
Notifications
You must be signed in to change notification settings - Fork 26
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
Field value not updated when entry is edited from the frontend #27
Comments
This is probably why Perhaps we could look at using a different delegate, |
It does use
What do you mean by this? |
The Reflection Field doesn't support editing on the frontend because it can't be guaranteed that all the fields will be passed. Thinking out loud, that guarantee doesn't exist for creating either! |
Yep. Thinking about it, the issue with the Reflection field is completely different from the Hashid field. Not sure if I can dive deep into this... |
As far as I remember (and the forum tells) one has to include reflection field in the form to get its value updated via frontend event. Haven't used it in the frontend for a while though, so I can't tell if it might miss data from other fields that aren't included in the form... |
Yes, this is due to what I said in my initial post:
@brendo worries about the "other fields" which are needed for the reflection field. But I think that the entry which is passed to the |
@michael-e That's what I do when using the hashid: I manually call compile before commit(). |
Wouldn't it be better to automatically call the compile function (in all cases)? It simplifies things. See my current pull request for the Hashid field. |
I've commented it. I hope you have a tool to format all of this ;) |
This is late, but yeah, I agree. Maybe @nilshoerrmann's 2.0.0 version already does it ? |
I don't think so. |
Thanks Nils. @michael-e I would review any PR sent on that, based on what you already did ;) Thanks guys |
I can put it on the list. But the list is very long, unfortunately... |
@michael-e Same here. There are no rush. |
(As discovered here: nathanhornby/hashid_field#31)
At the moment, the field value is saved/updated:
It is not updated, however, when the entry is edited from the frontend.
This is a conceptual flaw. The idea of "registering" a field in the checkPostFieldData function doesn't work as expected, because Symphony won't call this function for fields that are not included in the POST data (if an entry is edited, i.e. existing).
I do not actively use the Reflectionfield, but I might send a PR if someone is willing to test it!
The text was updated successfully, but these errors were encountered: