Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019323Openbravo ERPA. Platformpublic2011-12-16 17:222011-12-22 03:53
alostale 
mtaal 
normalminorhave not tried
closedfixed 
5
3.0MP6 
3.0MP73.0MP7 
Core
No
0019323: Shown in grid, not displayed fields are not editable
When a field is marked as not displayed and shown in grid, it is not possible to edit it in grid view even if it should be.
-Create an updatable field in any window
-Set this field as not displayed and shown in grid
-Open that window and edit a record in grid mode -> note this field cannot be edited.
Regression
related to feature request 00191223.0MP6 closed mtaal Support calculated fields 
related to defect 00193113.0MP7 closed mtaal Some fields are shown centered while editing in grid 
Issue History
2011-12-16 17:22alostaleNew Issue
2011-12-16 17:22alostaleAssigned To => alostale
2011-12-16 17:22alostaleModules => Core
2011-12-16 17:22alostaleTag Attached: Regression
2011-12-16 17:35alostaleNote Added: 0043908
2011-12-16 17:36alostaleRelationship addedrelated to 0019122
2011-12-16 17:36alostaleAssigned Toalostale => mtaal
2011-12-16 17:48alostaleNote Added: 0043909
2011-12-19 10:54hgbotCheckin
2011-12-19 10:54hgbotNote Added: 0043934
2011-12-19 10:54hgbotStatusnew => resolved
2011-12-19 10:54hgbotResolutionopen => fixed
2011-12-19 10:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e643cc4264701e62f2e024529878453cd095c7d1 [^]
2011-12-19 10:55mtaalRelationship addedrelated to 0019311
2011-12-19 13:04alostaleNote Added: 0043940
2011-12-19 13:04alostaleStatusresolved => closed
2011-12-19 13:04alostaleFixed in Version => 3.0MP7
2011-12-22 03:53hudsonbotCheckin
2011-12-22 03:53hudsonbotNote Added: 0043989

Notes
(0043908)
alostale   
2011-12-16 17:35   
It might be introduced in MP6 by 0019122 changeset dfee4d514c2b

In OBStandardView.prepareGridFields

@@ -1954,7 +1960,8 @@
       }
 
       // correct some stuff coming from the form fields
- if (!fld.displayed) {
+ if (fld.displayed === false) {
+ fld.canEdit = false;
         fld.visible = true;
         fld.alwaysTakeSpace = true;
       }

Assigning it to Martin has he did this change.
(0043909)
alostale   
2011-12-16 17:48   
Removing the line fld.canEdit = false; seems to solve this problem, but I don't know the purpose of this line.
(0043934)
hgbot   
2011-12-19 10:54   
Repository: erp/devel/pi
Changeset: e643cc4264701e62f2e024529878453cd095c7d1
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Dec 19 10:53:17 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e643cc4264701e62f2e024529878453cd095c7d1 [^]

Fixes issue 19323: Shown in grid, not displayed fields are not editable

---
M .hgignore
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0043940)
alostale   
2011-12-19 13:04   
Checked on pi@26982b3129be

*Code review:
 -.hgignore shouldn't be changed
*Issue:
 -With this change, the issue is not reproducible anymore
*Regression possibility:
 -The issue reverts part of dfee4d514c2b changeset. Checked calculated fields still work.
 -From a discussion with Martin regarding the purpose of the original change: "It was added as part of the calculated fields development. To me it seems to have been a mistake that I did that change as part of that development..."
(0043989)
hudsonbot   
2011-12-22 03:53   
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/9ac5e6f282ca [^]

Maturity status: Test