From b1d5d74e84be92a231641637bcaa67f58b1963ea Mon Sep 17 00:00:00 2001 From: pjmattal Date: Fri, 10 Jun 2005 05:28:49 +0000 Subject: 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 --- web/lib/pkgfuncs.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index b0743cc..b3e51d8 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -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 -- cgit v1.2.3-70-g09d2