Active
Project:
easyrec for ubercart
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 10:51 UTC
Updated:
23 Jul 2015 at 05:18 UTC
Jump to comment: Most recent
There is bug with this callback - only one item shown. Maybe you should use "+" as separator (not ",") and/or delete the last (to pass 1+2+3 instead of 1+2+3+).
This code example for easyrec_views_callback.js works as need:
ids = "";
for (x = 0; x < items.length; x++) {
if (ids.length) {
ids=ids + '+';
}
ids = ids + items[x].id;
}
Comments
Comment #1
david.mann commentedhmm i will look into it - worked perfectly for me on my local instance with VIEWS 3 - but i remember that i was quite unsure which seüerator was the correct one - will look into it next week!
Comment #2
david.mann commenteddid the new version fixed teh problem ?
Comment #2.0
david.mann commentedSome additions
Comment #3
Colin @ PCMarket commentedSorry to revive this, but i experienced the same issue and this fixed it for me.
Please commit.