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.
I'm experiencing an error using Unique Field. I have a content type which contains a multiple value select list field where I've set it to be Unique. The module works as expected as long as you only use a single value, but the field for the content type can have multiple values.Unique Field stops checking that field and let's it through, even though it's not unique.
Comment | File | Size | Author |
---|---|---|---|
#3 | Unique_field_fails_on_multiple_values_of_a_select_list_field_2604158-#3.patch | 1.43 KB | umangamu |
Comments
Comment #2
umangamu CreditAttribution: umangamu commentedComment #3
umangamu CreditAttribution: umangamu commentedComment #4
umangamu CreditAttribution: umangamu commentedComment #5
rakesh.gectcrThanks for the patch, Please add a little comment above your changes.
and
foreach ($field_values as $k => $v) {
Please use little more descriptive varibales
Comment #6
aditya_anurag CreditAttribution: aditya_anurag as a volunteer and at Valuebound commentedComment #7
umangamu CreditAttribution: umangamu at Kellton Tech Solutions Ltd commentedComment #8
umangamu CreditAttribution: umangamu at Kellton Tech Solutions Ltd commented