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
D6 taxonomy vocabularies have two settings (tags, and multiple) that are related to field cardinality. The descriptions for the fields are the following.
Tags: Terms are created by users when submitting posts by typing a comma separated list.
Multiple: Allows posts to have more than one term from this vocabulary (always true for tags).
(Source: http://cgit.drupalcode.org/drupal/tree/modules/taxonomy/taxonomy.admin.i...)
Proposed resolution
Set field cardinality to Unlimited if tags or multiple is enabled, otherwise 1.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#18 | interdiff-2616220-15-18.txt | 776 bytes | quietone |
#18 | 2616220-18.patch | 4.9 KB | quietone |
#15 | interdiff-2616220-7-15.txt | 1.6 KB | quietone |
#15 | 2616220-15.patch | 4.63 KB | quietone |
#7 | 2616220-7.patch | 4.36 KB | webflo |
Comments
Comment #2
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #3
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #4
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #7
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedI had to change the db dump because there are node revisions with multiple terms.
Comment #10
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #12
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedComment #13
benjy CreditAttribution: benjy commentedThanks, patch and tests look good, RTBC for me, just one small thing:
Shall we add a constant for "1" here?
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedComment #15
quietone CreditAttribution: quietone as a volunteer commentedWhat is the advantage of adding a constant for 1?
I think this should use the constant for unlimited cardinality.
Comment #16
benjy CreditAttribution: benjy commentedSorry, -1 makes much more sense. RTBC
Comment #17
catchThis should also use the constant.
Comment #18
quietone CreditAttribution: quietone as a volunteer commentedYes, it should.
Comment #19
benjy CreditAttribution: benjy commentedGreat
Comment #22
catchCommitted/pushed to all three 8.x branches, thanks!
Adding review credit post-commit.