Closed (fixed)
Project:
Refine by taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Dec 2006 at 09:20 UTC
Updated:
15 Mar 2007 at 21:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
Bèr Kessels commentedacknowleged, thanks for the report.
Comment #2
mo6Fixed refine_by_taxo_find_related_terms_by_node() to return an empty array of terms when there are no nodes in the displayed category. Also added an optimization to the db query and fixed two typos. Tested and works in my setup.
Comment #3
Bèr Kessels commentedLooks good, except of the one-line } else { :)
If ssomeone can please test and review, we can push this in sooner, i won"'t have time to do this myself.
@george: again thanks for the work, we can use this very well. However, I prefer it when patches aer dedicated. Even with small patches like these, try to keep them dedicated to one issue: for now leave this. But in future, best is to try and make three patches: typo-fix, db-optimisation, array-issue. This is common Drupal practice, because it has proven to work the best. Core will simply refuse a patch that does more then one thing.
But, as said: leave it for now, this patch is small enough :)
Comment #4
mo6@Bèr: I just *knew* you'd notice the else line. ;) I know it's scary to submit a patch to core because of Dries whipping someone's *ss when indenting or line length is wrong. So for now I'll limit myself to patching small modules and still get whipped! Keep up the good work. ;)
Comment #5
mo6Patch works fine.
Comment #6
Bèr Kessels commentedI am not happy with the else { (not talking about it being on one lie, this time).
To me it seems a hackish solution, please shift the if ($conditions) { part around a bit, instead, that will keep the code/logic a lot cleaner.
Comment #7
mo6Updated patch against 5.x branch. Switched the conditions checks around.
Comment #8
Bèr Kessels commentedFor some weird reason I cannot open the patch. I thought that was a hiccup in the system two days ago, but I can still not open the patch. Care to upload it again, and be careful with spaces in the filename, I have a feeling that is causing the problem right now.
Comment #9
mo6Strange. New try.
Comment #10
Bèr Kessels commentedLooks good, changing status to RTBC.
Comment #11
mo6Committed.
Comment #12
(not verified) commented