Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2943956: Experimental widget drop-down shows "Duplicate" even when the field storage setting is set to 1 implemented restrictions for when the 'Duplicate' action should be shown in the Paragraphs widget. However, these restrictions do not work for paragraphs with a fixed cardinality allowing more than 1 item.
Proposed resolution
Extend the 'Duplicate' action restrictions so it never shows when the maximum items has been reached.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The 'Duplicate' action never shows when the maximum items has been reached.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2020-02-25_14-45-33.jpg | 308.16 KB | Danny Englander |
#2 | 3115916-2.patch | 2.84 KB | idebr |
| |||
#2 | 3115916-2-test-only.patch | 2.1 KB | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr at iO commentedAttached patch:
Comment #4
Danny EnglanderI tested this patch in the following manner:
Comment #5
Danny EnglanderComment #6
BerdirNice work with the fix, automated and manual tests, that's how it should be :)