How to update a field in Settings model in afterSave() #397
-
Hi, I am trying to update a field using afterSave() in my Settings model. I can read my field like this: Updating my field like this: Updating my field like this: Same result as above with this (error 500):
I created a hacky workaround like this:
--> Works, but the page doesn't refresh Does anyone have an idea or solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Why are you doing it in afterSave() instead of beforeSave()? |
Beta Was this translation helpful? Give feedback.
Why are you doing it in afterSave() instead of beforeSave()?