Closed (fixed)
Project:
Views Saved Searches
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2010 at 18:07 UTC
Updated:
17 Mar 2011 at 12:51 UTC
Hi,
Little mistake : the block "My views saved search" does not work. See line 169 of the current dev version you have to remove the second parameter.
$saved_searches = views_savedsearches_load_multiple($uid, 1);
Question : it seems that the block shows the search or the current user but on the user pages where is shows the saved search of the user profile we're on (which means people can see the other user's searches).
One line above, we have :
$uid = (arg(0) == 'user' && is_numeric(arg(1))) ? arg(1) : $user->uid;
Should be just
$uid=$user->uid if we do not want this. Or at least this should be documented, shouldn't be?
Comments
Comment #1
titi88888888 commentedThank you !
This helped me a lot !
Comment #2
lucascaro commentedThanks eme!
Comment #3
aron novakCommitted, thanks.
Comment #4
pydubreucq commentedNice ;)
Thanks Aron