[
https://issues.apache.org/jira/browse/OFBIZ-12163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274480#comment-17274480 ]
Wiebke Pätzold commented on OFBIZ-12163:
----------------------------------------
The reason for the described error is that in OfbizUtil.submitPagination location.href = url is set when a page number is entered.
To display the result correctly I see two possibilities:
1) The input field for the page number also gets the attribute "data-lookupajax" = true.
The input of the page number was changed from a select to an input field and therefore does not get the attribute "data-lookupajax“ as before. For this, the " .nav-pager input" would have to be added in fieldlookup.js in the _modifyPagination function.
2) Alternatively, the OfbizUtil.submitPagination method can be modified.
Furthermore the question arises in which case it makes sense to run location.href = url? Is there a specific scenario where this is needed in a lookup dialog?
> Page selection is not working correctly in the lookup-dialog
> ------------------------------------------------------------
>
> Key: OFBIZ-12163
> URL:
https://issues.apache.org/jira/browse/OFBIZ-12163> Project: OFBiz
> Issue Type: Bug
> Reporter: Wiebke Pätzold
> Assignee: Wiebke Pätzold
> Priority: Minor
>
> If after a search in the lookup dialog a page number is entered to display the found hits, the result is displayed as an independent page without theme and not in the lookup dialog.
> To reproduce this:
> * go to catalog
> * Lookup product (lookup-dialog is open)
> * search for products which contains 0 in productId
> * enter 2 for pagenumber and press enter
> * the lookup-dialog disappears and your results are shown on the screen without a theme
--
This message was sent by Atlassian Jira
(v8.3.4#803005)