icolatsi22
Repeater rolls back after save
Ok, the problem was not with the naming, you can use "Order", the problem was with an accessor I had added. For some reason it messed up the repeater. So, for next time I need to be careful about accessors on models. Adding this comment for the future.
9 replies
Repeater rolls back after save
Ok, just an FYI for the future...
So i changed everything to use 'ClientOrder' instead of 'Order' now it works as expected. Not sure what the real problem was, but seems 'Order' can cause a conflict, at least in this scenario
🤷♂️
9 replies
Relationship model policies and authorisation on Select Form fields
The way I've done it in the past is, I use a custom query for the select.
So the select gets different options per role.
Maybe you can create an $allowedOptions array
(Problem is this is hard-coded. You can create a model to store these so you can edit them)
8 replies