Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037872Openbravo ERPA. Platformpublic2018-02-09 14:562018-02-22 18:19
JONHM 
caristu 
highminoralways
closedfixed 
5
 
3.0PR18Q2 
alostale
Core
No
0037872: Error when opening a child tab, which have filters applied, from another window
Error when opening a child tab, which have filters applied, from another window
Having an activated instance:

1) Open G/L Journal window and:
 - Use as filter the column 'Period' on the G/L journal tab
 - Use as filter the column 'General Ledger' on the Header tab
 - Use as filter the column 'Account' on the Lines tab

2) Save the record as 'test' and use it as default, then close the window

3) Open a record on the 'Lines' tab programatically by running this command on the developer tools console:
OB.Utilities.openDirectView('161', 'C_ValidCombination_ID', 'FinancialMgmtGLJournalLine', 'FF1F677803C244A69A629F9D0FA900B9')

4) The following error is shown:

ISC_Combined.js:254 Uncaught TypeError: Cannot read property 'getEditForm' of undefined
    at _2.loadFilterAuxiliaryCache (4198c78b36779605b83051fedf741940.js:2107)
    at _2.setViewState (4198c78b36779605b83051fedf741940.js:2105)
    at Object.OB.Personalization.applyViewDefinitionToView (4198c78b36779605b83051fedf741940.js:2692)
    at Object.OB.Personalization.applyViewDefinition (4198c78b36779605b83051fedf741940.js:2684)
    at _2.setPersonalization (4198c78b36779605b83051fedf741940.js:1477)
    at _2.setWindowSettings (4198c78b36779605b83051fedf741940.js:1459)
    at _2.callback (4198c78b36779605b83051fedf741940.js:1445)
    at _2.isc_c_Class_fireCallback [as fireCallback] (ISC_Combined.js:254)
    at _2.isc_c_Class__fireActionsOnPause [as $cm] (ISC_Combined.js:259)
    at _2.isc_c_Class_fireCallback [as fireCallback] (ISC_Combined.js:254)
No tags attached.
related to defect 0037587 closed jarmendariz Open on tab does not work on Tree type windows when using auxiliary inputs in display logic 
related to defect 0047320 closed alostale In saved views the uuid value is shown in the filter of some FK fields 
? ErrorChildTab.mp4 (2,301,753) 2018-02-09 14:56
https://issues.openbravo.com/file_download.php?file_id=11563&type=bug
Issue History
2018-02-09 14:56JONHMNew Issue
2018-02-09 14:56JONHMAssigned To => platform
2018-02-09 14:56JONHMFile Added: ErrorChildTab.mp4
2018-02-09 14:56JONHMModules => Core
2018-02-09 14:56JONHMTriggers an Emergency Pack => No
2018-02-09 15:10caristuStatusnew => acknowledged
2018-02-09 15:10caristuAssigned Toplatform => caristu
2018-02-09 15:10caristuStatusacknowledged => scheduled
2018-02-12 09:39caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16668#r16668
2018-02-12 13:29caristuRelationship addedrelated to 0037587
2018-02-13 08:43hgbotCheckin
2018-02-13 08:43hgbotNote Added: 0102343
2018-02-13 08:43hgbotStatusscheduled => resolved
2018-02-13 08:43hgbotResolutionopen => fixed
2018-02-13 08:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/af39974bd6a5700b25ade2426e43d75c3a565e7b [^]
2018-02-13 08:47hgbotCheckin
2018-02-13 08:47hgbotNote Added: 0102344
2018-02-13 08:51caristuReview Assigned To => alostale
2018-02-16 12:44alostaleNote Added: 0102461
2018-02-16 12:44alostaleStatusresolved => closed
2018-02-16 12:44alostaleFixed in Version => 3.0PR18Q2
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102747
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102748
2021-07-13 07:18alostaleRelationship addedrelated to 0047320

Notes
(0102343)
hgbot   
2018-02-13 08:43   
Repository: erp/devel/pi
Changeset: af39974bd6a5700b25ade2426e43d75c3a565e7b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Feb 13 08:43:38 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/af39974bd6a5700b25ade2426e43d75c3a565e7b [^]

fixes bug 37872: Error when directly open a child record whose tab has filters

 When direct opening a child record whose tab already has a filter applied (because of a previously created saved view) a JS error was being thrown in the loadFilterAuxiliaryCache function. This was caused because the form of the filter editor was not present yet. To prevent this error, we are now checking whether that form exists before continue with the execution of the loadFilterAuxiliaryCache function.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0102344)
hgbot   
2018-02-13 08:47   
Repository: erp/devel/pi
Changeset: d6507984d6512652b328128b52d348c5e54d7985
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Feb 13 08:47:07 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d6507984d6512652b328128b52d348c5e54d7985 [^]

related to issue 37872: Add missing check for filter edit form existence

  Added also this missing check in updateSelectedCountDisplay function.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0102461)
alostale   
2018-02-16 12:44   
reviewed + tested
(0102747)
hudsonbot   
2018-02-22 18:19   
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/980a6ad5bbf5 [^]
Maturity status: Test
(0102748)
hudsonbot   
2018-02-22 18:19   
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/980a6ad5bbf5 [^]
Maturity status: Test