Skip to content

Release 3.1.0 - #5

Merged
micschk merged 2 commits into
mainfrom
open-after-copy
Sep 29, 2026
Merged

micschk merged 2 commits into
mainfrom
open-after-copy

Conversation

@micschk

@micschk micschk commented Sep 29, 2026

Copy link
Copy Markdown
Member

See CHANGELOG.md.

CopyButton::setOpenAfterCopy(true) redirects to the copy's edit form in the
GridField's own detail form, at the URL GridFieldEditButton builds, so it works
in a ModelAdmin and in a GridField nested in a record's edit form. In the CMS
the admin controller answers the ajax request with X-ControllerURL. Falls back
to the list re-render when there is no GridFieldDetailForm or the copy is not in
the list. Off by default.

Tests cover the default, the redirect on a plain controller, both fallbacks, and
the ModelAdmin and nested cases end to end over HTTP.
@micschk
micschk merged commit 542d67c into main Sep 29, 2026
7 checks passed
@micschk
micschk deleted the open-after-copy branch September 29, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant