mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fixed bug #2761 problems switching from second page of search and from My Packages/Orphans
this should fix the set of bugs in this category all at once
This commit is contained in:
parent
c7e4f5c7fa
commit
b1d5d74e84
1 changed files with 15 additions and 0 deletions
|
@ -506,6 +506,21 @@ function pkg_search_page($SID="") {
|
|||
# reset the offset to zero if they hit Go
|
||||
#
|
||||
$_REQUEST["do_MyPackages"] = 0;
|
||||
$_REQUEST["do_Orphans"] = 0;
|
||||
$O = 0;
|
||||
}
|
||||
if ($_REQUEST["do_MyPackages"] && $_REQUEST["do_MyPackages"] != 1) {
|
||||
# reset the offset to zero if they hit My Packages
|
||||
#
|
||||
$_REQUEST["do_Search"] = 0;
|
||||
$_REQUEST["do_Orphans"] = 0;
|
||||
$O = 0;
|
||||
}
|
||||
if ($_REQUEST["do_Orphans"] && $_REQUEST["do_Orphans"] != 1) {
|
||||
# reset the offset to zero if they hit Orphans
|
||||
#
|
||||
$_REQUEST["do_Search"] = 0;
|
||||
$_REQUEST["do_MyPackages"] = 0;
|
||||
$O = 0;
|
||||
}
|
||||
$_REQUEST["O"] = $O; # so that pkg_search_results() works
|
||||
|
|
Loading…
Add table
Reference in a new issue