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.
Upon save of entity check if taxonomy term exists, if it does then get tid.
Comment | File | Size | Author |
---|---|---|---|
#6 | Screen Shot 2018-09-28 at 11.33.46.png | 25.04 KB | chandraraj |
#5 | Tags___Drupal_standard.png | 101.35 KB | aburrows |
#5 | no-duplicate-terms-2945343-5.patch | 4.22 KB | aburrows |
#2 | no-duplicate-terms-2945343-2.patch | 4.22 KB | aburrows |
#2 | sequelpro_spf_—__MySQL_5_5_5-10_1_32-MariaDB__drud_8xdevcontrib_ddev_local_db_eat.png | 48.08 KB | aburrows |
Comments
Comment #2
aburrows CreditAttribution: aburrows at DigiDrop commentedSo I've added some extra checks and a new method into the Eat.php class this upon testing resolves. As can be seen in the screenshot the DB has mutliple entries and tid of 3 is the same term.
Please test on your site, and feedback anything so this can be committed.
Comment #3
aburrows CreditAttribution: aburrows at DigiDrop commentedComment #4
chandraraj CreditAttribution: chandraraj commentedTested the patch. I'm afraid i've got an warning issue. No term is created too.
Comment #5
aburrows CreditAttribution: aburrows at DigiDrop commentedI've re-tested on simpytest and its working fine, please test again on a clean Drupal 8.6x install.
Updated patch to include static method.
Comment #6
chandraraj CreditAttribution: chandraraj commentedThanks aburrows,
I've tested the patch in our site and a clean 8.6.1 site. Seems to be working
Comment #8
aburrows CreditAttribution: aburrows at DigiDrop commented