Closed (fixed)
Project:
Display Suite
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2013 at 06:14 UTC
Updated:
13 Aug 2013 at 10:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
thedavidmeister commentedShould maybe look like:
Comment #2
swentel commentedOh Drupal core ..
Comment #3
thedavidmeister commentedYou think I should open an issue against core for taxonomy_term_view()?
I do feel like that it's DS's responsibility to use the core API correctly, even if it's awkward that the API doesn't let you reliably put "load" straight into "view".
Maybe there should be two open issues for this?
Also, shouldn't fatal errors for a common use-case be major? It's not exactly unlikely that you would want to display a term rendered by a view and also be allowed to delete terms.
Comment #4
swentel commentedThe issue should be ideally be fixed in #1281114: Database records not deleted for Term Reference Fields after Term is Deleted, but I don't see that happening soon.
I don't necessarily consider this major as I find it curious to way the tid is even still there in ds_field_formatter_view() when the node is being rendered.
I'll make a hotfix for this one anyway, don't worry :)
Comment #5
swentel commentedNevermind, I see why it's still there.
Comment #6
thedavidmeister commentedI'm using Views to display a "full rendered term" for a term referenced by a product line item in commerce, there's no nodes involved, it's a field in Views.
It seems that Views gets the tid from the query it builds and blindly sends it off to be rendered with the default view mode for taxonomy terms.
Comment #7
thedavidmeister commentedFrom https://drupal.org/node/45111
This issue is perfectly described by the example in the formal definition of major issues ;)
Comment #8
meeli commentedPatch for the code described above attached here.
Comment #9
swentel commentedCommitted and pushed to 7.x-2.x, moving to 8.x-2.x
Comment #10
swentel commentedcommitted and pushed to 8.x-2.x