Lower the priority of the scratch variables used to store classnames and page numbers. Fixes bug #12076
This commit is contained in:
parent
76e9693f4b
commit
28e4f9f245
2 changed files with 11 additions and 2 deletions
|
|
@ -8,6 +8,7 @@
|
|||
- fixed #12081: addrees not in addressbook after user change in session
|
||||
- fixed #12089: Cannot refund item in transaction if the sku no longer exists.
|
||||
- rfe #12085: Export Related Story Topics
|
||||
- fixed #12076: Paginator shows no results with cached page index
|
||||
|
||||
7.10.12
|
||||
- fixed #12072: Product, related and accessory assets
|
||||
|
|
|
|||
|
|
@ -27,7 +27,10 @@ sub getClassSelectBox {
|
|||
);
|
||||
delete $classes{"WebGUI::Asset"}; # don't want to search for the root asset
|
||||
|
||||
my $className = $session->form->process("class","className") || $session->scratch->get('assetManagerSearchClassName');
|
||||
#my $className = $session->form->process("class","className") || $session->scratch->get('assetManagerSearchClassName');
|
||||
my $className = $session->form->get('action') ? $session->form->process('class', "className")
|
||||
: $session->scratch->get('assetManagerSearchPageNumber')
|
||||
;
|
||||
$session->scratch->set('assetManagerSearchClassName', $className);
|
||||
return WebGUI::Form::selectBox( $session, {
|
||||
name => "class",
|
||||
|
|
@ -145,7 +148,12 @@ sub getSearchPaginator {
|
|||
$queryString .= ';class=' . $class;
|
||||
}
|
||||
|
||||
my $pageNumber = $session->form->get('pn') || $session->scratch->get('assetManagerSearchPageNumber');
|
||||
##If the form was submitted, we always use page #1. Otherwise, take the page # from the
|
||||
##form or from the scratch variable.
|
||||
my $pageNumber = $session->form->get('action') ? 1
|
||||
: $session->form->get('pn') ? $session->form->get('pn')
|
||||
: $session->scratch->get('assetManagerSearchPageNumber')
|
||||
;
|
||||
my $p = $s->getPaginatorResultSet( $session->url->page( $queryString ), undef, $pageNumber );
|
||||
|
||||
$session->scratch->set('assetManagerSearchPageNumber', $pageNumber);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue