|View Issue Details|
|Type||Category||Severity||Reproducibility||Date Submitted||Last Update|
|defect||[Openbravo ERP] A. Platform||minor||have not tried||2014-12-29 17:15||2015-02-04 20:33|
|Priority||normal||Resolution||fixed||Fixed in Version||3.0PR15Q1|
|Status||closed||Fix in branch||Fixed in SCM revision||e47640ded61f|
|OS Version||Database version||Ant version|
|Product Version||SCM revision|
|Review Assigned To||alostale|
|Regression introduced in release|
|Regression introduced by commit|
|Triggers an Emergency Pack||No|
0028499: Opening a link using the QuickView does not fetch properly the link parameters
|Description||When a window is open by entering a link in the Quick View, the parameters of the link are not obtained properly. Because of this, some features do not work properly (i.e. using a link that contains the grid criteria).|
The problem is that the OB.Utilities.openDirectab function, which is used to open a view using the Quick View and also when an URL is pasted in the address bar, tries to fetch the parameters from the URL. If the link has been entered in the Quick View the parameters won't be available in the URL, whereas if the view is opened by entering the URL in the address window the view will be opened properly.
|Steps To Reproduce||- Open the Unit of Measure window|
- Enter an 'a' in the Name column filter editor. Check that the grid is filtered.
- Obtain the direct link by pressing the proper toolbar button. It will look something like this . Copy the link in the clipboard.
- Close the window.
- Paste the link in the Quick View and press enter. The Unit of Measure window will be opened but no criteria will be applied, this is wrong.
- Paste the link in the address bar and press enter. The Unit of Measure window will be opened and the proper criteria will be applied to the grid.
 http://127.0.0.1:9080/openbravo/?tabId=133&criteria=%7B%22operator%22%3A%22and%22%2C%22_constructor%22%3A%22AdvancedCriteria%22%2C%22criteria%22%3A%5B%7B%22fieldName%22%3A%22name%22%2C%22operator%22%3A%22iContains%22%2C%22value%22%3A%22a%22%2C%22_constructor%22%3A%22AdvancedCriteria%22%7D%5D%7D [^]
|Tags||No tags attached.|
|Attached Files||issue28499.export [^] (3,559 bytes) 2014-12-29 18:41|
|A fix has been attached to the issue. It will not be pushed to pi until it is open for changesets targeting PR15Q2.|
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Dec 29 18:40:27 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e47640ded61fd1e78c4520b857482d66048d1bbc [^]
Fixes bug 28499:Proper params are used when opening a link using the quick view
The problem was that the OB.Utilities.openDirecTab function, which is used to open a view using the Quick View and also when an URL is pasted in the address bar, tries to fetch the parameters from the current address bar URL. If the link has been entered in the Quick View the parameters won't be available in the address bar, whereas if the view is opened by entering the URL in the address window the view will be opened properly.
This has been fixed by adding the urlParams as an optional parameter to the openDirectTab function. If the parameter is not passed to the function then it will work as usual and it will take its values from the address bar. When the function is called from the quick view the proper parameters are passed, so in this case the url params are not taken from the address bar.
-applying link to url
-applying link to quick launch
-repeating tests for 0024577
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.
Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f36c91d0ad63 [^]
Maturity status: Test
|2014-12-29 17:15||AugustoMauch||New Issue|
|2014-12-29 17:15||AugustoMauch||Assigned To||=> AugustoMauch|
|2014-12-29 17:15||AugustoMauch||Modules||=> Core|
|2014-12-29 17:15||AugustoMauch||Triggers an Emergency Pack||=> No|
|2014-12-29 17:15||AugustoMauch||Relationship added||related to 0024577|
|2014-12-29 17:39||AugustoMauch||Steps to Reproduce Updated||View Revisions|
|2014-12-29 18:41||AugustoMauch||File Added: issue28499.export|
|2014-12-29 18:43||AugustoMauch||Note Added: 0072861|
|2014-12-29 18:43||AugustoMauch||Status||new => scheduled|
|2014-12-29 18:43||AugustoMauch||fix_in_branch||=> pi|
|2015-01-05 11:57||AugustoMauch||Issue Monitored: alostale|
|2015-01-05 11:57||AugustoMauch||Review Assigned To||=> alostale|
|2015-01-05 11:57||AugustoMauch||fix_in_branch||pi =>|
|2015-01-05 12:00||hgbot||Note Added: 0073304|
|2015-01-05 12:00||hgbot||Status||scheduled => resolved|
|2015-01-05 12:00||hgbot||Resolution||open => fixed|
|2015-01-05 12:00||hgbot||Fixed in SCM revision||=> http://code.openbravo.com/erp/devel/pi/rev/e47640ded61fd1e78c4520b857482d66048d1bbc [^]|
|2015-01-12 12:12||alostale||Note Added: 0073416|
|2015-01-12 12:12||alostale||Status||resolved => closed|
|2015-01-12 12:12||alostale||Fixed in Version||=> 3.0PR15Q1|
|2015-02-04 20:33||hudsonbot||Note Added: 0074104|
|Copyright © 2000 - 2009 MantisBT Group|