Skip to content

[5.x] Prevent incompatible bulk entry moves#19268

Merged
brandonkelly merged 2 commits into
5.xfrom
rias/pt-3197-5x-incompatible-bulk-entry-moves
Jul 20, 2026
Merged

[5.x] Prevent incompatible bulk entry moves#19268
brandonkelly merged 2 commits into
5.xfrom
rias/pt-3197-5x-incompatible-bulk-entry-moves

Conversation

@riasvdv

@riasvdv riasvdv commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Description

Prevent bulk entry moves from persisting entry types that are unsupported by the destination section.

Copilot AI review requested due to automatic review settings July 20, 2026 07:57
@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

PT-3197

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents bulk entry section moves from completing when one or more selected entries have an entry type that isn’t supported by the destination section, avoiding persisted “incompatible” entry type/section combinations.

Changes:

  • Tighten the “Move to section” modal section-compatibility filter to require all selected entry types be supported by the target section.
  • Add a preflight validation in the bulk move action to reject the request if any selected entry type isn’t supported by the destination section.
  • Add a defensive validation in the Entries service to block single moves when the entry’s type isn’t supported by the target section.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/services/Entries.php Adds a service-level guard preventing moves to sections that don’t support the entry’s type.
src/controllers/EntriesController.php Ensures the modal and bulk move endpoint only allow moves when all selected entry types are supported by the destination section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@riasvdv
riasvdv marked this pull request as ready for review July 20, 2026 08:00
@brandonkelly
brandonkelly merged commit 6ab8f69 into 5.x Jul 20, 2026
14 checks passed
@brandonkelly
brandonkelly deleted the rias/pt-3197-5x-incompatible-bulk-entry-moves branch July 20, 2026 16:00
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.

4 participants