ctrl
ctrl copied to clipboard
Generic Update Route gets object id from form field, not url param
An issue I found when I didn't realise the _id field was required on a generic view schema was that the update route didn't know what the object's id was. I found this a bit weird, because the id is in the url:
POST /admin/enitity/:id/edit
Is it better to take the id from a hidden form field and not the url?
I think I fixed this on the plan. I'll be pushing shortly.
@serby is this fixed?
You tell me.