Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037842Openbravo ERPA. Platformpublic2018-02-06 15:532018-02-22 18:19
vmromanos 
platform 
immediatemajoralways
closedfixed 
5
 
3.0PR18Q2 
caristu
Core
Production - Confirmed Stable
2016-01-28
3.0PR16Q2
https://code.openbravo.com/erp/devel/pi/rev/baf72de5b678a308c36d5946af3e143d08625eca [^]
No
0037842: Callout not triggered when clearing a selector
A callout is associated to a nullable column with a OBUISEL_Selector Reference.
When the user selects something in the selector the callout is properly triggered. However when the user clears the selector (i.e. no value is selected) and the focus is changed to another field then the callout is NOT triggered.

I have noticed a special case where the callout is properly triggered: when you open a window and then you clear the selector of an existing record (i.e. a record previously saved in the DB) then the callout is properly triggered.
Open the Sales Invoice window
- Create a record in the header tab
- In the Lines tab, select a product. Check that the price is updated
- Now give an empty value to the product field. Check that the price is not being emptied (this would have been done had the callout been called)
No tags attached.
depends on backport 00378963.0PR18Q1 closed AugustoMauch Callout not triggered when clearing a selector 
depends on backport 00378973.0PR17Q4.1 closed platform Callout not triggered when clearing a selector 
caused by defect 0032007 closed caristu Double request to FIC in CHANGE mode when the form is redrawn by overflow under some circumstances 
Issue History
2018-02-06 15:53vmromanosNew Issue
2018-02-06 15:53vmromanosAssigned To => platform
2018-02-06 15:53vmromanosModules => Core
2018-02-06 15:53vmromanosTriggers an Emergency Pack => No
2018-02-06 17:39AugustoMauchRegression level => Production - Confirmed Stable
2018-02-06 17:39AugustoMauchRegression date => 2016-01-28
2018-02-06 17:39AugustoMauchRegression introduced in release => 3.0PR16Q2
2018-02-06 17:39AugustoMauchRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/baf72de5b678a308c36d5946af3e143d08625eca [^]
2018-02-07 13:07alostaleRelationship addedcaused by 0032007
2018-02-09 09:23alostalePrioritynormal => immediate
2018-02-13 10:36AugustoMauchStatusnew => scheduled
2018-02-14 09:41hgbotCheckin
2018-02-14 09:41hgbotNote Added: 0102387
2018-02-14 09:41hgbotStatusscheduled => resolved
2018-02-14 09:41hgbotResolutionopen => fixed
2018-02-14 09:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2ae5f4a8e8da772e5a62bbaa7b8a51012411ef9e [^]
2018-02-14 13:31AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=16688#r16688
2018-02-15 10:37hgbotCheckin
2018-02-15 10:37hgbotNote Added: 0102432
2018-02-15 10:38caristuReview Assigned To => caristu
2018-02-15 10:38caristuNote Added: 0102433
2018-02-15 10:38caristuStatusresolved => closed
2018-02-15 10:38caristuFixed in Version => 3.0PR18Q2
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102752
2018-02-22 18:19hudsonbotCheckin
2018-02-22 18:19hudsonbotNote Added: 0102764

Notes
(0102387)
hgbot   
2018-02-14 09:41   
Repository: erp/devel/pi
Changeset: 2ae5f4a8e8da772e5a62bbaa7b8a51012411ef9e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 14 09:40:23 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2ae5f4a8e8da772e5a62bbaa7b8a51012411ef9e [^]

Fixes issue 37842: Callouts are invoked when clearing a non mandatory selector

This changeset [1] fixed a problem where a callout was being called twice when picking a value from a selector. The first request was done properly, but the
second one was done with a null value. The fix consisted in not notifying a change in selector when it was modified from a non-empty value to an empty value.

But as a result, when a non mandatory selector is emptied, callouts are no longer being invoked. The original issue is very hard to reproduce, I have not been
able to find a new way to reproduce it or fix it. To avoid the regression, now the code that was done to fix [1] will only take place if the selector is mandatory,
to make sure that it is possible to give empty values to non-mandatory selectors.

[1] https://code.openbravo.com/erp/devel/pi/rev/baf72de5b678a308c36d5946af3e143d08625eca [^]

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0102432)
hgbot   
2018-02-15 10:37   
Repository: erp/devel/pi
Changeset: cdfabd384be43a9804b0d1de4c4a796949f61a17
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Feb 15 10:36:34 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cdfabd384be43a9804b0d1de4c4a796949f61a17 [^]

related to issue 37842: update copyright year

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0102433)
caristu   
2018-02-15 10:38   
Code reviewed + tested OK.
(0102752)
hudsonbot   
2018-02-22 18:19   
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/980a6ad5bbf5 [^]
Maturity status: Test
(0102764)
hudsonbot   
2018-02-22 18:19   
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/980a6ad5bbf5 [^]
Maturity status: Test