Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039227Openbravo ERPA. Platformpublic2018-09-05 10:292019-10-09 12:21
anderaranguren 
caristu 
highminorhave not tried
closedfixed 
5
pi 
3.0PR19Q1 
alostale
Core
No
0039227: Error with tree reference fields in the form personalization button
Cannot read property 'length' of undefined when trying to edit the form from the 'form personalization' button on the backend
It happends when there is a tree reference field
Login in the backend
Go to 'Discounts and Promotions' window
Select a record with characteristics
Go to 'Characteristics' tab
Click the 'form personalization' button
In the developers window console appears an error with the following: "Cannot read property 'length' of undefined" and the form view is not opened
No tags attached.
related to defect 0032153 closed NaroaIriarte [RR16Q1] "Update Characteristics" process does not show characteristics to choose them after creating a new record 
related to defect 00182063.0MP4 closed mtaal [Personalize form layout] Image type item has not the upload icon 
related to defect 0039269 acknowledged Triage Platform Base Form Personalization > Restore Defaults button does not work properly in some tabs 
png treeReference.png (224,541) 2018-09-05 10:29
https://issues.openbravo.com/file_download.php?file_id=12107&type=bug
png
Issue History
2018-09-05 10:29anderarangurenNew Issue
2018-09-05 10:29anderarangurenAssigned To => platform
2018-09-05 10:29anderarangurenFile Added: treeReference.png
2018-09-05 10:29anderarangurenModules => Core
2018-09-05 10:29anderarangurenResolution time => 1537912800
2018-09-05 10:29anderarangurenTriggers an Emergency Pack => No
2018-09-05 10:30anderarangurenPriorityurgent => high
2018-09-05 10:30anderarangurenSeveritymajor => minor
2018-09-05 10:50jfrancesIssue Monitored: jfrances
2018-09-10 10:00caristuRelationship addedrelated to 0032153
2018-09-10 12:29caristuAssigned Toplatform => caristu
2018-09-10 12:29caristuStatusnew => scheduled
2018-09-11 18:15hgbotCheckin
2018-09-11 18:15hgbotNote Added: 0106686
2018-09-11 18:15hgbotStatusscheduled => resolved
2018-09-11 18:15hgbotResolutionopen => fixed
2018-09-11 18:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e5566da8d2a096a4d5fd74d818959515a64a7311 [^]
2018-09-11 18:18caristuRelationship addedrelated to 0018206
2018-09-11 18:19caristuReview Assigned To => alostale
2018-09-11 18:36caristuRelationship addedrelated to 0039269
2018-09-12 21:33hudsonbotCheckin
2018-09-12 21:33hudsonbotNote Added: 0106733
2018-09-21 09:18alostaleNote Added: 0106918
2018-09-21 09:18alostaleStatusresolved => closed
2018-09-21 09:18alostaleFixed in Version => 3.0PR19Q1
2019-10-09 12:21rafarodaIssue Monitored: rafaroda

Notes
(0106686)
hgbot   
2018-09-11 18:15   
Repository: erp/devel/pi
Changeset: e5566da8d2a096a4d5fd74d818959515a64a7311
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Sep 11 17:50:57 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e5566da8d2a096a4d5fd74d818959515a64a7311 [^]

fixes issue 39227: Form Personalization doesn't work having tree based fields

  The Form Personalization feature was not working when having fields based on a tree reference. This was happening because when building the pre-visualization form not all the information required by an OBTreeItem instance was provided.

  Now we are taking into account if the OBTreeItem instance is being built for the personalization form and in that case we skip the initialization of its components: it will be shown just as a text field.

  Besides, we are adding a check within the "moved" function to verify whether the "tree" property exists. This is done to avoid a JS error at that point after opening the personalization form.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-tree.js
---
(0106733)
hudsonbot   
2018-09-12 21:33   
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/ad75d3cb1744 [^]
Maturity status: Test
(0106918)
alostale   
2018-09-21 09:18   
Reviewed + tested