Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038555Openbravo ERPA. Platformpublic2018-05-16 08:322018-05-18 09:07
caristu 
caristu 
urgentminorhave not tried
closedfixed 
5
 
3.0PR18Q3 
alostale
Core
No
0038555: JS Error after opening a window under some circumstances
A JS Error is thrown after opening a window having:

- Lazy filtering enabled
- A deleted saved view that contained at least one summary function

The error retrieved in this case: Uncaught TypeError: Cannot read property 'hide' of undefined
In an environment with the instance activated and no modules in "in development" status.

As System Administrator
0) Go to the Grid Configuration at System Level window and create a new record, enabling the lazy filtering.

As Group Admin
1) Open the Sales Order window
2) Navigate to the lines tab and add a summary function to the UOM field
3) Show the "Creation Date" field in the grid and move it to a new position in the grid
4) Save the view and mark it as default
5) Close the window and open it again
6) Delete the newly created view, do not set the default view.
7) Close the window and open it again. The error is thrown.
No tags attached.
caused by defect 0028281 closed NaroaIriarte Funnel icon is not hidden after clearing the filters when using lazy filtering 
Issue History
2018-05-16 08:32caristuNew Issue
2018-05-16 08:32caristuAssigned To => platform
2018-05-16 08:32caristuModules => Core
2018-05-16 08:32caristuTriggers an Emergency Pack => No
2018-05-16 08:38caristuAssigned Toplatform => caristu
2018-05-16 08:38caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17145#r17145
2018-05-16 08:42caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17146#r17146
2018-05-16 08:52caristuRelationship addedrelated to 0028281
2018-05-16 08:53caristuRelationship deletedrelated to 0028281
2018-05-16 08:53caristuRelationship addedcaused by 0028281
2018-05-16 09:03hgbotCheckin
2018-05-16 09:03hgbotNote Added: 0104538
2018-05-16 09:03hgbotStatusnew => resolved
2018-05-16 09:03hgbotResolutionopen => fixed
2018-05-16 09:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e8f606ccb519eba2eab37f4cdaa25e1fa6e92c56 [^]
2018-05-16 09:03caristuReview Assigned To => alostale
2018-05-16 13:24hudsonbotCheckin
2018-05-16 13:24hudsonbotNote Added: 0104540
2018-05-18 09:07alostaleNote Added: 0104587
2018-05-18 09:07alostaleStatusresolved => closed
2018-05-18 09:07alostaleFixed in Version => 3.0PR18Q3

Notes
(0104538)
hgbot   
2018-05-16 09:03   
Repository: erp/devel/pi
Changeset: e8f606ccb519eba2eab37f4cdaa25e1fa6e92c56
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed May 16 08:54:42 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e8f606ccb519eba2eab37f4cdaa25e1fa6e92c56 [^]

fixes issue 38555: JS Error after opening a window under some circumstances

  When opening a window having the lazy filtering enabled, the funnel icon is hidden automatically. But when opening a window with some particular configuration it is possible to reach the code that hides the funnel icon without having it initialized yet. In this case a JS error was thrown avoiding the correct loading of the window.

  To fix the problem we just check whether the funnel icon has been initialized before trying to hide it.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0104540)
hudsonbot   
2018-05-16 13:24   
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/46253db4f9d3 [^]
Maturity status: Test
(0104587)
alostale   
2018-05-18 09:07   
reviewed + tested