Closed (fixed)
Project:
Views Galleriffic
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2009 at 06:07 UTC
Updated:
28 Oct 2009 at 00:53 UTC
in *.module @~ll.99 there is:
} else {
$num = variable_get('views_galleriffic_path_num',0);
Value of $num is caching between sessions. I am not sure why you are doing this, versus calculating the number of elements in the array and incrementing?
Comments
Comment #1
1kenthomas commentedP.S., in case this is not clear, once the value goes out of range, you get a null result for the paths.
Comment #2
acouch commentedThis is a hacky way of dealing with the the way that views outputs multiple fields per row. I am thinking I am going to get rid of this and make a separate module to deal with multiple images from a single node. Is there a better way to increment that you can think of? If so please let me know what you are thinking or submit a patch.
Comment #3
1kenthomas commentedHello-- sorry-- I didn't get into rewriting, because I wasn't sure what you were up to or where you might want to go with it, and then the client/PM decided to use another gallery (before your reply).
You could probably solve the issue above by resetting $num when views is run; otherwise, yes, a module would probably be better. If I have a change to work on again, I'll try to get you some code.
Comment #4
acouch commentedI've removed this $num stuff. Please try the dev version or new release tomorrow.