Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
Source: Entity
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2013 at 10:39 UTC
Updated:
12 May 2013 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirTerms were recently changed to support entityCondition('bundle', $bundle), can we maybe switch to that?
Comment #2
attiks commented@Berdir, to be honest no idea, I guess so
Comment #3
berdirOh, we're using a direct query and not EFQ. So ignore what I said.
Right, then this makes sense. The only thing I'm not sure about is if we should move this into the function that actually does the query. You can see that we already have a special case for comments in there. so we could simply add another one that switches the key as necessary. Should be a much easier patch.
Comment #4
berdirAnd comment could be improved to to a join to the node table and then add the type condition there :)
Comment #5
attiks commented#3 I had in the general function first, but moved it because it's only needed for the entities.
Comment #6
berdirNot sure I follow your argument, we already have a special case for comments in there (that could be improved) so why not do the same for taxonomy terms there?
Comment #7
attiks commentedBerdir, either place is fine by my, I don't know when I can reroll the patch, I pushed it live already ;-) so feel free to reroll.
Comment #8
malberts commentedI'm using the patch in #0 for now.
Comment #9
miro_dietikerMartin, can you please make sure this goes in. Check with Berdir about how the solution should look like.
Comment #10
berdirHere's an updated patch. Also updated the comments comment there a bit, as I got confused and didn't see the stuff below initially.
Comment #11
berdirTests, including tests for the new bundle column.
Comment #13
berdirCommited and pushed.