Select options not updated when using "create & create another" button
In a RelationManager i'm using
When using "Create" button all good but when i'm using the "create & create another" button my options isnt updated
5 Replies
For now i've just disabled CreateAnother but if someone have another solution to achieve what i want it will be great
(getUnsetLocales() simply return an array of non used locales)
what does getUnsetLocales() contain?
maybe you need to refresh the relationship in there otherwise it will used the old cached version
any idea how to trigger a refresh when user press the "create & create another"?
I have similar(minor) problem on headerActions:
If i create the last possible translation and save it. The button to create a new record in the relation is still in primary color (but its a minor issue cause when clicking on it it does nothing). Only after refreshing the page the color is darker as expected
$options = $this->category_translations()->pluck('locale');
Fixed! Thanks a lot