Needs work
Project:
Drupal core
Version:
main
Component:
taxonomy.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jun 2012 at 16:56 UTC
Updated:
21 Oct 2022 at 01:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lliss commentedSo far as I can tell this does not work. I tested by adding terms to a node. Then ran
and got an error.
Comment #2
bleen commentedIll take a look and add tests
Comment #3
bleen commentedThis patch works, and also adds a simpletest
Comment #5
bleen commentedthis passes locally
Comment #7
bleen commentedhuh? ... try this testbot
Comment #8
lliss commentedNeed a comment for the bundle parameter. With that exception the code seems fine and the tests passed. So I think it is fine to add, particularly since it's a helper funtion and probably won't be called very often so far as I can tell.
Comment #9
star-szrThanks @bleen18 and @lliss! A couple minor points.
The wording of this assertion message might be confusing out of context. Maybe something like "The correct terms were retrieved using taxonomy_get_entity_terms()."? It also looks there is an extra newline here.
There should be another space before this parameter description.
Comment #10
bleen commentedA good suggestion and a good catch (in that order)
Comment #11
star-szrLooks good, thanks @bleen18! Rerolled to get rid of the tab character :)
Comment #12
bleen commented#11: 1613196-11.patch queued for re-testing.
Comment #14
mgiffordComment #26
eric115 commentedIt looks like this didn't make it into Drupal 7 either, so I am going to mark this as a feature request instead of a bug.
As a side note if anyone needs something like this for their project, maybe consider creating a trait that can be used on bundle classes now that bundle classes are available in core.
Comment #27
eric115 commented