Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Sep 29, 2025

Description

  1. Hides “Duplicate” element action when maxEntries is reached for a matrix field in blocks mode.

  2. Fixes an issue where “Duplicate” element action was silently failing if the canonical owner reached maxEntries, but the provisional draft had, e.g. one entry deleted, and you attempted to duplicate another one.

Steps to reproduce no 2:

  • create a matrix field in inline-editable blocks mode, with at least 2 entry types and maxEntries set to e.g. 2
  • create a section with an entry type containing that matrix field
  • create an entry in that section, add 2 matrix “blocks” to it, and fully save
  • edit the entry, delete one of the “blocks”, wait for autosave to complete and try to duplicate the remaining “block” - it won’t duplicate and the console will show 403 “User not authorized to duplicate this element.” even though there’s still room for one more block “block”

Related issues

n/a

@i-just i-just requested a review from brandonkelly September 29, 2025 16:31
@brandonkelly brandonkelly merged commit bc87d27 into 5.x Oct 2, 2025
2 checks passed
@brandonkelly brandonkelly deleted the bugfix/matrix-blocks-mode-actions branch October 2, 2025 16:05
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.

3 participants