Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030436Openbravo ERPA. Platformpublic2015-07-27 15:222015-11-23 21:17
NaroaIriarte 
caristu 
urgentmajoralways
closedfixed 
5
 
3.0PR16Q13.0PR16Q1 
alostale
Core
No
0030436: The "Description" column appears empty when adding it in a Saved view
In the product window, if a view is saved adding the column "Description", and after that, this view is loaded, the "Description" column appears, but it appears empty.
1-Log in as F&B Admin. The professional insatnce must be activated.
2-Go to "Product" window.
3-Do right click on the grid header and go to "Columns".
4-Select the "Description" column to be displayed.
5-Click the "Save view" icon.
6-In the "Level" dropdown,select "Client".
7-In the "Value" dropdown let "F&B International Group" and save it.
8-Click on the "Save view" icon and select "Standard view".
9-Refresh by pushing F5.
10-Now the standard view without the "Description" column must be shown.
11-Click on the "Save view" icon and select the previously saved view.
12-Relize that the "Description" column is shown but it is empty.
No tags attached.
related to defect 0030393 acknowledged Triage Platform Base The saved views do not work properly at "Role" level 
related to defect 0030392 acknowledged Triage Platform Base The saved views do not work properly at "User" level. 
related to defect 0030572 acknowledged Triage Platform Base The standard view does not work fine when saving a view changing the colspan of a field. 
related to defect 0030576 acknowledged Triage Platform Base Saving a view changing the width a column of a child tab does not work properly 
related to defect 0030655 acknowledged Triage Platform Base Save a view hidding columns and after that switching to Standard View does not work properly 
related to feature request 00244033.0MP29 closed AugustoMauch When the grid calls the datasource, it should not retrieve the properties that are not shown in the grid. 
related to defect 0030656 acknowledged Triage Platform Base Hiding a column in a child tab, saving that view and after that switching to the standard view does not work properly. 
Issue History
2015-07-27 15:22NaroaIriarteNew Issue
2015-07-27 15:22NaroaIriarteAssigned To => platform
2015-07-27 15:22NaroaIriarteModules => Core
2015-07-27 15:22NaroaIriarteTriggers an Emergency Pack => No
2015-07-27 15:30NaroaIriarteRelationship addedrelated to 0030393
2015-07-27 15:31NaroaIriarteRelationship addedrelated to 0030392
2015-07-28 08:23alostalePrioritynormal => urgent
2015-07-28 08:23alostaleSeverityminor => major
2015-07-28 08:23alostaleTarget Version => 3.0PR15Q4
2015-07-28 08:23alostaleDescription Updatedbug_revision_view_page.php?rev_id=9108#r9108
2015-07-28 08:23alostaleStatusnew => acknowledged
2015-08-24 15:56NaroaIriarteRelationship addedrelated to 0030572
2015-08-24 15:56NaroaIriarteRelationship addedrelated to 0030576
2015-08-24 15:57NaroaIriarteRelationship addedrelated to 0030655
2015-08-24 16:22NaroaIriarteRelationship addedrelated to 0030656
2015-09-29 12:29alostaleTarget Version3.0PR15Q4 => 3.0PR16Q1
2015-11-12 09:50caristuAssigned Toplatform => caristu
2015-11-12 09:50caristuStatusacknowledged => scheduled
2015-11-12 10:14caristuRelationship addedrelated to 0024403
2015-11-13 08:19caristuReview Assigned To => alostale
2015-11-13 08:19caristuIssue Monitored: alostale
2015-11-13 08:20hgbotCheckin
2015-11-13 08:20hgbotNote Added: 0081799
2015-11-13 08:20hgbotStatusscheduled => resolved
2015-11-13 08:20hgbotResolutionopen => fixed
2015-11-13 08:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3e0eac2ae26afd6680b7eef6c8db32086211149b [^]
2015-11-16 13:07alostaleNote Added: 0081872
2015-11-16 13:07alostaleStatusresolved => closed
2015-11-16 13:07alostaleFixed in Version => 3.0PR16Q1
2015-11-16 13:19hgbotCheckin
2015-11-16 13:19hgbotNote Added: 0081874
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082221
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082232

Notes
(0081799)
hgbot   
2015-11-13 08:20   
Repository: erp/devel/pi
Changeset: 3e0eac2ae26afd6680b7eef6c8db32086211149b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Nov 12 17:03:51 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3e0eac2ae26afd6680b7eef6c8db32086211149b [^]

fixes issue 30436: Some columns appear empty when adding them in a saved view

The problem happened when adding a field with a saved view which by defaul is not displayed in the grid. In that case the values for that field are not present in the client side and is necessary to perform a request to the datasource.

To solve the problem a new method has been included for OBViewGrid, viewHasFieldsNotInGrid, which checks if every field added by the saved view is already displayed in the grid. If not then we invalidate the cache to force a request to the datasource through the refreshContents() function.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
---
(0081872)
alostale   
2015-11-16 13:07   
code reviewed

tested:
-it works as expected
-no extra requests are performed when applying saved view
(0081874)
hgbot   
2015-11-16 13:19   
Repository: erp/devel/pi
Changeset: 02c4bcfb4afae26936a309ef70a5183909f8b27d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Nov 16 13:18:49 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/02c4bcfb4afae26936a309ef70a5183909f8b27d [^]

related to issue 30436: added missing js beautify

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0082221)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test
(0082232)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test