Closed GuySartorelli closed 2 months ago
Note that while this is being implemented to facilitate fixing a bug, the approach is somewhat more risky in terms of chance of regressions than I feel comfortable with in a patch release - hence targeting 5
instead of 5.2
.
I went with this approach because admin uses PJAX for the form submission and elemental expects a PJAX response in return. It doesn't make a distinction between different admin sections or different contexts for the form, nor should it.
Description
Adds a PJAX response negotiator to
GridFieldDetailForm_ItemRequest
so that javascript which is expecting PJAX responses will get what it's expecting.Note there's a kitchen sink CI run linked in the main issue
Manual testing steps
silverstripe/frameworktest
to a project and make sure all of the operations work as expected for companies (which are versioned) and employees (which are not versioned) in "Test ModelAdmin"Company
class (yml config snippet below), add a block with an upload field (e.gsilverstripe/elemental-fileblock
) and make sure you can upload a file to the block and save with the page save button.Issues