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.
When the field cardinality is 1 and a user tries to add another field collection item then the message 'Too many items.' will be displayed and nothing else. A completely empty page otherwise, leaving the user confused.
Proposed solution: show the access denied page instead. Another field collection item cannot be added, so the appropriate response is to deny access. That is still not ideal for the end user, but at least the admin will see an access denied entry in the logs.
Comment | File | Size | Author |
---|---|---|---|
#4 | fc-too-many-items-2841004-4.patch | 1.33 KB | klausi |
|
Comments
Comment #2
klausiPatch.
Comment #4
klausiTrying to fix the test.
Comment #5
janadamWorks fine on many our projects.
Comment #7
ram4nd CreditAttribution: ram4nd as a volunteer commented