Closed (fixed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code - Taxonomy
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2014 at 19:51 UTC
Updated:
28 Dec 2015 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
claudiu.cristeaHere's a patch.
Comment #2
claudiu.cristeaComment #3
kristiaanvandeneyndeWorks for me, thanks!
I'm not sure if we want code for another module inside HS, although other modules do it too...
Comment #4
claudiu.cristeaHS already tests the existence of 3rd party
i18n_taxonomy. This is not a bad practice especially for popular modules. And Title is one of them.If you are happy with the fix and it does the job why not set this issue to RTBC?
Comment #5
kristiaanvandeneyndeI was holding off on setting this as RTBC until another party confirmed it works, but seeing as it works and it's clearly documented...
Off topic:
About using module_exists(): I tend to avoid it when writing modules or patches because:
I'm not saying you shouldn't use module_exists(), I'm just stating that it isn't always the best solution.
Comment #6
claudiu.cristeaWell, I agree but I considered also next pros:
8.x. In Drupal 8, Entity Translation is part of the core. Title is only an application of Entity Translation. It seems natural for me to consider ET & Title more than simple contrib modules even if we are discussing about HS for D7. So, yes, ET & Title are somehow privileged modules right now.if (module_exists())statement and to draw a simpler patch. But why overloading with a full entity load outside the use of Title module, when there's no need for that. Performance was the main reason.Comment #8
stefan.r commentedCommitted, thanks!
Comment #9
stefan.r commentedComment #11
bogdan.racz commentedI've noticed that in 7.x-3.0-beta2 the $term_entities variable is not taken into consideration anymore.
It was removed in this commit: https://www.drupal.org/node/544324#comment-9895657
Anyhow, I have re-rolled the initial patch to the current version, and it seems to work again.
Please review.
Comment #12
bogdan.racz commentedComment #13
sylus commentedI think we should have filed a new issue since original closed but since here and patch works as advertised.
Comment #15
stefan.r commentedCommitted, thanks!