Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026696Openbravo ERPA. Platformpublic2014-05-26 16:562014-08-08 18:54
egoitz 
shankarb 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
AugustoMauch
Core
No
0026696: The filter does not work when changing the ad_org_id column to a table reference displayng the value column.
The filter does not work when changing the ad_org_id column to a table reference displayng the value column.
-Define a module and a template
-Define a new table reference for ad_org table, displaying the value column
-Using a template change the reference of the ad_org_id column on the m_product table to use the new reference used.
-Compile and login
-Go to the product window and try to filter using the organization table.
*The filter does not show any data.
No tags attached.
related to defect 00241813.0MP26 closed AugustoMauch In table reference the flag displayed value is not working in grid view 
related to defect 00269503.0PR14Q3 closed AugustoMauch Reference filter in Columns tab is not working properly. 
related to defect 0028811 acknowledged Triage Platform Base Table reference filter shows different information from the grid under some circumnstances 
related to defect 0030800 closed caristu Filter on Property field in a table reference column doesn't work 
diff TableReferenceFilter.diff (8,506) 2014-07-02 10:03
https://issues.openbravo.com/file_download.php?file_id=7031&type=bug
Issue History
2014-05-26 16:56egoitzNew Issue
2014-05-26 16:56egoitzAssigned To => AugustoMauch
2014-05-26 16:56egoitzModules => Core
2014-05-26 16:56egoitzResolution time => 1402351200
2014-05-26 16:56egoitzTriggers an Emergency Pack => No
2014-05-27 07:24shankarbAssigned ToAugustoMauch => shankarb
2014-05-27 13:58jonalegriaesarteRelationship addedrelated to 0024181
2014-06-03 08:57shankarbStatusnew => scheduled
2014-06-03 08:57shankarbfix_in_branch => pi
2014-06-03 09:15shankarbNote Added: 0067701
2014-06-03 09:15shankarbStatusscheduled => feedback
2014-06-18 15:51shankarbNote Added: 0068129
2014-06-18 15:51shankarbStatusfeedback => new
2014-06-19 09:21shankarbStatusnew => scheduled
2014-06-23 12:53shankarbReview Assigned To => AugustoMauch
2014-06-23 12:53shankarbfix_in_branchpi =>
2014-06-23 12:53shankarbIssue Monitored: AugustoMauch
2014-06-23 12:54shankarbNote Added: 0068248
2014-06-23 12:54shankarbStatusscheduled => resolved
2014-06-23 12:54shankarbFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/e3da458ad088 [^]
2014-06-23 12:54shankarbResolutionopen => fixed
2014-06-23 12:55shankarbNote Added: 0068249
2014-06-24 10:05hgbotCheckin
2014-06-24 10:05hgbotNote Added: 0068268
2014-06-25 01:35hudsonbotCheckin
2014-06-25 01:35hudsonbotNote Added: 0068294
2014-06-27 13:00AugustoMauchRelationship addedrelated to 0026950
2014-06-27 13:03AugustoMauchNote Added: 0068404
2014-06-27 13:03AugustoMauchStatusresolved => new
2014-06-27 13:03AugustoMauchResolutionfixed => open
2014-06-30 17:45hgbotCheckin
2014-06-30 17:45hgbotNote Added: 0068458
2014-06-30 17:45hgbotStatusnew => resolved
2014-06-30 17:45hgbotResolutionopen => fixed
2014-06-30 17:45hgbotFixed in SCM revisionhttps://code.openbravo.com/erp/devel/pi/rev/e3da458ad088 [^] => http://code.openbravo.com/erp/devel/pi/rev/4ccdae6e598965c5c5ac98bc2763a9b702691b16 [^]
2014-07-01 04:30hudsonbotCheckin
2014-07-01 04:30hudsonbotNote Added: 0068469
2014-07-01 09:19alostaleNote Added: 0068474
2014-07-01 09:19alostaleStatusresolved => new
2014-07-01 09:19alostaleResolutionfixed => open
2014-07-01 14:04hgbotCheckin
2014-07-01 14:04hgbotNote Added: 0068484
2014-07-01 14:04hgbotCheckin
2014-07-01 14:04hgbotNote Added: 0068485
2014-07-01 14:04hgbotCheckin
2014-07-01 14:04hgbotNote Added: 0068486
2014-07-01 17:06AugustoMauchTarget VersionPR14Q3 =>
2014-07-01 17:39alostaleTarget Version => PR14Q4
2014-07-02 10:03shankarbFile Added: TableReferenceFilter.diff
2014-07-02 10:03shankarbNote Added: 0068498
2014-07-02 16:47hudsonbotCheckin
2014-07-02 16:47hudsonbotNote Added: 0068511
2014-07-02 16:47hudsonbotCheckin
2014-07-02 16:47hudsonbotNote Added: 0068512
2014-07-02 16:47hudsonbotCheckin
2014-07-02 16:47hudsonbotNote Added: 0068513
2014-07-08 09:40hgbotCheckin
2014-07-08 09:40hgbotNote Added: 0068551
2014-07-08 09:40hgbotStatusnew => resolved
2014-07-08 09:40hgbotResolutionopen => fixed
2014-07-08 09:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/4ccdae6e598965c5c5ac98bc2763a9b702691b16 [^] => http://code.openbravo.com/erp/devel/pi/rev/f65a28b4406644be68b7873449fde107f5d720f7 [^]
2014-07-14 12:49AugustoMauchNote Added: 0068616
2014-07-14 12:49AugustoMauchStatusresolved => new
2014-07-14 12:49AugustoMauchResolutionfixed => open
2014-07-18 07:36hgbotCheckin
2014-07-18 07:36hgbotNote Added: 0068719
2014-07-18 07:36hgbotStatusnew => resolved
2014-07-18 07:36hgbotResolutionopen => fixed
2014-07-18 07:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f65a28b4406644be68b7873449fde107f5d720f7 [^] => http://code.openbravo.com/erp/devel/pi/rev/bbb998610a9098516fc7c3053c7b260010bb1da6 [^]
2014-07-18 12:40AugustoMauchNote Added: 0068731
2014-07-18 12:40AugustoMauchStatusresolved => new
2014-07-18 12:40AugustoMauchResolutionfixed => open
2014-07-21 16:08hgbotCheckin
2014-07-21 16:08hgbotNote Added: 0068768
2014-07-21 16:08hgbotStatusnew => resolved
2014-07-21 16:08hgbotResolutionopen => fixed
2014-07-21 16:08hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bbb998610a9098516fc7c3053c7b260010bb1da6 [^] => http://code.openbravo.com/erp/devel/pi/rev/210aa57e9a791144789b6695a656b4909d632399 [^]
2014-07-22 12:10hgbotCheckin
2014-07-22 12:10hgbotNote Added: 0068791
2014-07-22 12:35shankarbNote Added: 0068797
2014-07-22 14:27hgbotCheckin
2014-07-22 14:27hgbotNote Added: 0068805
2014-07-23 11:40hgbotCheckin
2014-07-23 11:40hgbotNote Added: 0068834
2014-07-29 11:08alostaleNote Added: 0068953
2014-07-29 11:08alostaleStatusresolved => closed
2014-07-29 11:08alostaleFixed in Version => 3.0PR14Q4
2014-08-08 18:52hudsonbotCheckin
2014-08-08 18:52hudsonbotNote Added: 0069144
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069180
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069196
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069205
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069208
2014-08-08 18:54hudsonbotCheckin
2014-08-08 18:54hudsonbotNote Added: 0069217
2015-01-29 16:20caristuRelationship addedrelated to 0028811
2015-10-26 14:29alostaleRelationship addedrelated to 0030800

Notes
(0067701)
shankarb   
2014-06-03 09:15   
Issue is no longer reproducible in pi. Fixed by combos refactor project[1]. Please confirm.

[1] https://issues.openbravo.com/view.php?id=26267 [^] [^]
(0068129)
shankarb   
2014-06-18 15:51   
Issue reproducible.
(0068248)
shankarb   
2014-06-23 12:54   
26696: Table references work with display column other than identifiers

When table references were displayed, always the identifier columns were displayed.
The actual value was displayed in cases of composite identifiers which in turn was another identifier,
eg., Financial account in Customer. Now it uses the display column in all cases.
The criteriaDisplayField parameter is already being used for displaying the appropriate value. Set it's value correctly for table references
Added additional logic in DefaultJsonDataService to include the display field column to the formed BOB object.
This fix is not risky as it affects only the displaying of FK filter values from the fetched result.
(0068249)
shankarb   
2014-06-23 12:55   
Issue fixed in changeset https://code.openbravo.com/erp/devel/pi/rev/e3da458ad088. [^] Since 'fixes' was left out in the commit message, adding it manually.
(0068268)
hgbot   
2014-06-24 10:05   
Repository: erp/devel/pi
Changeset: 391fdc807c269873fb77c0a85e76e56bda40531b
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jun 24 13:31:26 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/391fdc807c269873fb77c0a85e76e56bda40531b [^]

Related to issue 26696 : Handled NPE

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0068294)
hudsonbot   
2014-06-25 01:35   
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/e78ccbaf0186 [^]
Maturity status: Test
(0068404)
AugustoMauch   
2014-06-27 13:03   
Reopened because it causes https://issues.openbravo.com/view.php?id=26950. [^]

Client side filtering does not work properly. For instance, the Reference column filter of the Column Tab does not work. The generated criteria field name is now reference$name, it used to be reference$_identifier. In the grid data only the reference (id) and reference$_identifier is stored, so it is not possible to filter by reference$name locally.
(0068458)
hgbot   
2014-06-30 17:45   
Repository: erp/devel/pi
Changeset: 4ccdae6e598965c5c5ac98bc2763a9b702691b16
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Jun 30 21:10:52 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/4ccdae6e598965c5c5ac98bc2763a9b702691b16 [^]

Fixes Issue 26696 : Adaptive filtering works properly

When performing local filtering, always compare with identifier as the grid contains only the id and identifier.

---
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
(0068469)
hudsonbot   
2014-07-01 04:30   
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/a4db5fde5ca2 [^]
Maturity status: Test
(0068474)
alostale   
2014-07-01 09:19   
Reopened: not working properly
(0068484)
hgbot   
2014-07-01 14:04   
Repository: erp/devel/pi
Changeset: 56bae435ed54a616a29076b60d931fc07f9e7964
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jul 01 17:30:28 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/56bae435ed54a616a29076b60d931fc07f9e7964 [^]

Related to issue 26696 : Backout changeset 4ccdae6e5989

---
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
(0068485)
hgbot   
2014-07-01 14:04   
Repository: erp/devel/pi
Changeset: d651b9fbdd8512600534b69061d09b48406374dd
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jul 01 17:30:56 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/d651b9fbdd8512600534b69061d09b48406374dd [^]

Related to issue 26696 : Backout changeset 391fdc807c26

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
---
(0068486)
hgbot   
2014-07-01 14:04   
Repository: erp/devel/pi
Changeset: 27996e18590d5b70be2bd85095c32d9a798431f9
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jul 01 17:32:24 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/27996e18590d5b70be2bd85095c32d9a798431f9 [^]

Related to issue 26696 : Backout changeset e3da458ad088

Backout all changes related to this issue.
The issue will be fixed completely on the server side, instead of having logic in both client and server.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/FKComboUIDefinition.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
---
(0068498)
shankarb   
2014-07-02 10:03   
Fix attached in the issue. Will be reviewed and pushed in Q4
(0068511)
hudsonbot   
2014-07-02 16:47   
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/e8fdcd7d974b [^]
Maturity status: Test
(0068512)
hudsonbot   
2014-07-02 16:47   
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/e8fdcd7d974b [^]
Maturity status: Test
(0068513)
hudsonbot   
2014-07-02 16:47   
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/e8fdcd7d974b [^]
Maturity status: Test
(0068551)
hgbot   
2014-07-08 09:40   
Repository: erp/devel/pi
Changeset: f65a28b4406644be68b7873449fde107f5d720f7
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Sun Jul 06 12:13:03 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/f65a28b4406644be68b7873449fde107f5d720f7 [^]

Fixes issue 26696: Filters of Table references work properly.

When table references were displayed, always the identifier columns were displayed.
The actual value was displayed in cases of composite identifiers which in turn was another identifier,
eg., Financial account in Customer. Now it uses the display column in all cases.
The identifier is set with appropritate value in filters also.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-fk-filter.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/FKComboUIDefinition.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataToJsonConverter.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java
---
(0068616)
AugustoMauch   
2014-07-14 12:49   
Reopened because it is still reproducible
(0068719)
hgbot   
2014-07-18 07:36   
Repository: erp/devel/pi
Changeset: bbb998610a9098516fc7c3053c7b260010bb1da6
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu Jul 17 14:42:48 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/bbb998610a9098516fc7c3053c7b260010bb1da6 [^]

Fixes Issue 26696: Filtering of records works in all cases

Fixes filtering of records in all cases whether the field is primitive or a composite reference.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0068731)
AugustoMauch   
2014-07-18 12:40   
Reopened because the filter drop down is not populated properly when filtered.

To reproduce it I did the following:
- Created a Table Reference:
  * Table: AD_ORG
  * Displayed Column: Updated By

Assign this reference to the AD_ORG_ID column of the C_ORDER table. Compile and restart tomcat.

As F&B Admin:
- Open the Sales Order window.
- Clear the filters. Check that a User name is shown as the identifier or the organizations (in my case, System).
- Open the filter drop down of the Organization column. It is opened properly.
- Enter System in the filter editor. See that the filter drop down is now empty. This is wrong.

It seems that when the filter drop down is filtered, the filter is being applied on the identifier of the column and not on the column selected in the Table Reference.
(0068768)
hgbot   
2014-07-21 16:08   
Repository: erp/devel/pi
Changeset: 210aa57e9a791144789b6695a656b4909d632399
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Jul 21 19:35:39 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/210aa57e9a791144789b6695a656b4909d632399 [^]

Fixes issue 26696 : Filters work for table references

Filters are displayed properly if the display column is primitive or non primitive.
When a field that references another table is used, the displayed value is the identifier of the referred table.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0068791)
hgbot   
2014-07-22 12:10   
Repository: erp/devel/pi
Changeset: 10341843a241206ad792529e34d06b15fe21bc17
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jul 22 15:39:38 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/10341843a241206ad792529e34d06b15fe21bc17 [^]

Related to issue 26696 : Fixes filtering and sorting

Filtering and sorting is done using the displayed column of the table reference.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0068797)
shankarb   
2014-07-22 12:35   
Test case added for testing for this issue in test link.

http://tools.openbravo.com:8891/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-7748 [^]
(0068805)
hgbot   
2014-07-22 14:27   
Repository: erp/devel/pi
Changeset: e624a8506d5548567e4eeb8c3e6aa46967291789
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jul 22 17:55:48 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e624a8506d5548567e4eeb8c3e6aa46967291789 [^]

Related to issue 26696 : Display column is computed only for table ref and not tableDir ref.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0068834)
hgbot   
2014-07-23 11:40   
Repository: erp/devel/pi
Changeset: 276c7bb840e7fc3df1034248b42be9aea43dfa36
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Wed Jul 23 15:08:27 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/276c7bb840e7fc3df1034248b42be9aea43dfa36 [^]

Related to issue 26696 : Fixes null pointer exception

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0068953)
alostale   
2014-07-29 11:08   
code reviewed + tested
(0069144)
hudsonbot   
2014-08-08 18:52   
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/4450016dee64 [^]
Maturity status: Test
(0069180)
hudsonbot   
2014-08-08 18: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/4450016dee64 [^]
Maturity status: Test
(0069196)
hudsonbot   
2014-08-08 18: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/4450016dee64 [^]
Maturity status: Test
(0069205)
hudsonbot   
2014-08-08 18: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/4450016dee64 [^]
Maturity status: Test
(0069208)
hudsonbot   
2014-08-08 18: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/4450016dee64 [^]
Maturity status: Test
(0069217)
hudsonbot   
2014-08-08 18:54   
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/4450016dee64 [^]
Maturity status: Test