mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
5810ecf7b9
In it's current state you need to revert to something like `Session::get('CMSMain.currentPage')` to get the foreign key of what the item you are creating relates to (e.g. a Book => has_many Author) - if you create a new Author you may need to reference the owning Book in the `getCMSFields` function. This is just a small quality of life buff that populates that foreign key before calling `getCMSFields()` rather than after. This should not break backwards compatibility in any way and isn't exactly a new feature so could be considered a bug fix.