Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030808
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2015-09-09 18:292016-10-31 17:43
ReportermfuertesView Statuspublic 
Assigned Toplatform 
PrioritynormalResolutionopenFixed in Version3.0PR17Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030808: Hook call twice in onChange function javascript

DescriptionIt seems that openbravo is calling the hook (the onchange function) twice when changing a select field in form view.
Steps To ReproduceWith developers tools in livebuilds add breakpoint in line 29514 (this line my change, search for: "if (view && OB.OnChangeRegistry.hasOnChange(view.tabId, item))")

When changing a select, chrome will reach that point twice.

(the client has a popup that is showing twice)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0034200 closedalostale client side callouts are executed twice when picking a value in a selector drop down 

-  Notes
(0080328)
alostale (manager)
2015-09-11 09:19

Please, can you provide more detailed steps to reproduce based on a real case rather than on debugging the code?

What does "When changing a select" mean?
(0080333)
mfuertes (developer)
2015-09-11 10:10

Select as an html select, a field with a dropdown list in where you select an option.

For real code, take the tiquet from support. The client is having issues because has added a javascript in a field (Proveedor Preferencial) to trigger an event on field change, and it seems that its triggering the hook twice, as its diplaying the confirmation dialog twice. It only occcurs when the value on the field is changed, I mean, if you click and select the same value it only triggers it once.

So to reproduce it in livebuild I monitorized for a field (an html select field with onChange event like the one in the tiquet) the same exact part of the generated javascript code to see when the trigger is called, as I havent actully added javascript, and for a field change its reaching the "if" statement that decides whether to trigger the hook or not, twice.

- Issue History
Date Modified Username Field Change
2015-09-09 18:29 mfuertes New Issue
2015-09-09 18:29 mfuertes Assigned To => platform
2015-09-09 18:29 mfuertes Modules => Core
2015-09-09 18:29 mfuertes Triggers an Emergency Pack => No
2015-09-11 09:19 alostale Note Added: 0080328
2015-09-11 09:19 alostale Assigned To platform => mfuertes
2015-09-11 09:19 alostale Status new => feedback
2015-09-11 10:10 mfuertes Note Added: 0080333
2015-09-14 12:46 mfuertes Status feedback => new
2015-09-14 13:21 mfuertes Assigned To mfuertes => platform
2015-11-11 11:31 alostale Status new => acknowledged
2015-11-11 11:37 alostale Priority high => normal
2016-10-31 17:42 caristu Relationship added has duplicate 0034200
2016-10-31 17:42 caristu Status acknowledged => scheduled
2016-10-31 17:43 caristu Review Assigned To => caristu
2016-10-31 17:43 caristu Status scheduled => closed
2016-10-31 17:43 caristu Fixed in Version => 3.0PR17Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker