Closed (fixed)
Project:
EVA: Entity Views Attachment
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2012 at 08:57 UTC
Updated:
19 Nov 2012 at 00:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
mkadin commentedHmmm...isn't your solution exactly what's being done in the end of eva_get_views() ...
Comment #2
braindrift commented@mkadin: Thanks for your reply.
In the end of eva_get_views just an empty array is being returned but the
$used_viewsis being leftnull. I'm recommending to set (initialize)$used_viewsto an empty array so the code (lines 131-154) is not executed multiple times during the same request if no views are returnedon line 137.
dendie
Comment #3
mkadin commentedMakes sense to me...this look good?
Comment #4
mkadin commentedWhoops...wrong spot...i meant to put it here.
Comment #5
braindrift commentedI think the first one (#3) was better.
Reason: if
eva_get_viewsis called with$reset = FALSEand$used_viewsis set in line 121 (like it's done in patch #4), the if block on line 131 will not be executed although it should.Comment #6
braindrift commentedComment #7
mkadin commentedWow, can't believe I never committed this. committed to HEAD. Might be a while before we see a new package though.