Closed (fixed)
Project:
Avatar Selection
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Dec 2010 at 18:23 UTC
Updated:
3 Jan 2014 at 02:41 UTC
Jump to comment: Most recent
Comments
Comment #1
happyend-re commentedI have same problem. I don't know fixing it but I found one solution just for me: I hide in css the pager and I use unique avatars in Avatar selection preferences... This is not very good solution. Any ideas?
Comment #2
stella commentedI can't reproduce this I'm afraid. What are your module settings? What browser(s) does this happen on? Finally, can you try the latest dev release as that includes a number of fixes not included in the 6.x-1.6 release?
Comment #3
stella commentedNo updates in almost 4 weeks, closing. Feel free to re-open if you can provide more information.
Comment #4
crackattack commentedI just installed version 1.7 and ran across this exact problem.
I noticed that if you pick an avatar on the first page and hit save, the page submits to the correct URL. However, if you navigate to page 2 or higher then select an avatar and hit save, the URL that is being submitted to has an invalid format. There is a ?page=[pagenumber] being appended to the end of the URL. So it was ending up with something like http://yoursiteurl/?q=user/1/edit?page=2
The URL should be http://yoursiteurl/?q=user/1/edit&page=2
In avatar_selection_pager.js, the fetchPage function contains
var action = url + "?page="+page;
I changed it to
var action = url + "&page="+page;
Now, selecting avatars from page 2 and up works fine.
Comment #5
stella commentedAh right, the existing code works with "clean urls" enabled, whereas you don't appear to have that feature enabled on your site, hence why I couldn't reproduce it. However, your solution doesn't work for the clean urls situation. I extended it a bit so it works for both scenarios. Fix committed and will be in the next dev release.