Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034749Openbravo ERPA. Platformpublic2016-12-15 17:262022-02-01 08:05
airaceburu 
Triage Platform Base 
highminoralways
acknowledgedopen 
5
pi 
 
Core
No
0034749: SelectionChanged function is called twice per selection in P&E grids
SelectionChanged function is called twice per selection in P&E grids
1- Go to [Payment In] window
2- Create a dummy payment
3- Click add details
4- Using browser's dev console, put a breakpoint in "OB.APRM.AddPayment.selectionChanged" function
5- Clean the filters
6- Select one record in Order/Invoice grid
7- Notice that selectionChanged is called twice
No tags attached.
Issue History
2016-12-15 17:26airaceburuNew Issue
2016-12-15 17:26airaceburuAssigned To => platform
2016-12-15 17:26airaceburuModules => Core
2016-12-15 17:26airaceburuTriggers an Emergency Pack => No
2016-12-15 17:57caristuNote Added: 0092421
2016-12-15 17:58caristuNote Edited: 0092421bug_revision_view_page.php?bugnote_id=0092421#r14007
2016-12-15 17:59caristuSeveritymajor => minor
2016-12-15 17:59caristuStatusnew => acknowledged
2016-12-15 18:00caristuNote Edited: 0092421bug_revision_view_page.php?bugnote_id=0092421#r14008
2016-12-15 18:00caristuPrioritynormal => high
2016-12-15 18:49caristuSummaryPayment SelectionChanged function is called twice per selection => SelectionChanged function is called twice per selection in P&E grids
2016-12-15 18:49caristuDescription Updatedbug_revision_view_page.php?rev_id=14010#r14010
2016-12-15 18:49caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14012#r14012
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

Notes
(0092421)
caristu   
2016-12-15 17:57   
(edited on: 2016-12-15 18:00)
Note that OB.APRM.AddPayment.selectionChanged is workarounding this issue with the following statement:

this.fireOnPause('selectionChanged' + record.id, function() { OB.APRM.AddPayment.doSelectionChanged(record, state, this.view);}, 200);
                                                   
Thus, the actions involving the P&E (OB.APRM.AddPayment.doSelectionChanged) are just executed once.