Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-94 now.

Searching own posts from UCP fails (fix completed in vcs)

Make sure you have atleast one post. Go to the UCP main page, Under the section "your activity" choose "search users posts", instead of getting a list of users posts you infact get the ordinary search form.

Cause:
The URL used in the UCPs search is:
Code: Select all
http://phpbb.test/search.php?search_author=andy&show_results=posts

Judging by how the link on members list works I think this should be:
Code: Select all
http://phpbb.test/search.php?author=andy&sr=posts


In file:./includes/ucp/ucp_main.php line 172:
Contains:
Code: Select all
               'U_SEARCH_USER'      => ($auth->acl_get('u_search')) ? "{$phpbb_root_path}search.$phpEx$SID&search_author=" . urlencode($user->data['username']) . "&show_results=posts" : '', 

Should be:
Code: Select all
               'U_SEARCH_USER'      => ($auth->acl_get('u_search')) ? "{$phpbb_root_path}search.$phpEx$SID&author=" . urlencode($user->data['username']) . "&sr=posts" : '',


I have tested this change and it seems to work ok.

Comments / History

Linked ticket with changeset: r5705

Action performed by naderman (Development Team Leader) on Mar 23rd 2006, 19:23

Ticket details

Related SVN changesets