Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

feature request - work only existing models, or create new #50

Open
papppeter opened this issue Jul 17, 2019 · 0 comments
Open

feature request - work only existing models, or create new #50

papppeter opened this issue Jul 17, 2019 · 0 comments
Assignees

Comments

@papppeter
Copy link

Hi,

i have a scenario where i would like to work on huge form saved by this behavior. My only problem is i need to put the ids on the form for multi input if i would like to keep old records, and not always delete and create new ones.

what if somebody is overwriting id-s in hidden input than this behaviour will try to load it from db with that id. It could happen the user receives data which they should not see, and will linked to him.

i would suggest a small extra here, there could be a mode where it can only work with existing models, it checks was the model already in hasmany relation, if not then it will be created.

what do you think?

@nstCactus nstCactus self-assigned this Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants