Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034291Openbravo ERPA. Platformpublic2016-10-25 16:572022-02-01 08:05
JONHM 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
pi 
 
Core
No
0034291: In "Price List Schema" window, cannot pick a product without "Product Category" field selected
In "Price List Schema" window, if we create a new line, we cannot pick a product without "Product Category" field selected.
1) Open "Price List Schema" window and select a price list schema of the list.
2) Create a new line, leave "Product Category" field empty and select a product using the selector.
-- It shows message "No items to show"
No tags attached.
Issue History
2016-10-25 16:57JONHMNew Issue
2016-10-25 16:57JONHMAssigned To => platform
2016-10-25 16:57JONHMModules => Core
2016-10-25 16:57JONHMTriggers an Emergency Pack => No
2016-10-25 17:39caristuNote Added: 0090877
2016-12-01 13:11alostaleStatusnew => acknowledged
2016-12-01 13:20alostalePriorityhigh => normal
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

Notes
(0090877)
caristu   
2016-10-25 17:39   
When the SelectorDatasourceFilter tries to resolve the filter expression makes use of the ParameterUtils.getJSExpressionResult(). At this point the parameters with a null value, has the string 'null' as value.

This causes that the engine interprets the following expression as true: if (OB.getParameters().get('inpmProductCategoryId')) which eventually results on the following where expression: e.product.productCategory.id = 'null'