Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028117Openbravo ERPA. Platformpublic2014-11-06 19:122014-11-10 17:52
caristu 
alostale 
immediatemajoralways
closedfixed 
5
pi 
3.0PR15Q13.0PR15Q1 
AugustoMauch
Core
No
0028117: MultipleDeleteActionHandler throws an exception when removing several rows of a datasource based window
MultipleDeleteActionHandler throws an exception when removing several rows of a datasource based window.
1) Create a datasource based window: http://wiki.openbravo.com/wiki/How_to_Create_a_Table_Based_on_a_User_Defined_Datasource [^]

2) Access to the window. Select several records and click on the delete button. The following error message appears in the screen: "Unknown entity: entity_name"
No tags attached.
related to defect 0028119 closed AugustoMauch potential NPE in DataSourceServiceProvider 
related to design defect 0028118 new AugustoMauch different deletion flows having a single or multiple records selected 
Issue History
2014-11-06 19:12caristuNew Issue
2014-11-06 19:12caristuAssigned To => AugustoMauch
2014-11-06 19:12caristuModules => Core
2014-11-06 19:12caristuResolution time => 1415314800
2014-11-06 19:12caristuTriggers an Emergency Pack => No
2014-11-06 19:13caristuIssue Monitored: networkb
2014-11-06 19:19caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6978#r6978
2014-11-07 09:20alostaleRelationship addedrelated to 0028118
2014-11-07 09:20alostaleAssigned ToAugustoMauch => alostale
2014-11-07 10:02alostaleRelationship addedrelated to 0028119
2014-11-07 10:10alostaleReview Assigned To => AugustoMauch
2014-11-07 10:11hgbotCheckin
2014-11-07 10:11hgbotNote Added: 0071486
2014-11-07 10:11hgbotStatusnew => resolved
2014-11-07 10:11hgbotResolutionopen => fixed
2014-11-07 10:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d9ef82279509745a58bfea426bad6b996713f85f [^]
2014-11-07 10:12alostaleNote Added: 0071487
2014-11-10 17:52AugustoMauchNote Added: 0071534
2014-11-10 17:52AugustoMauchStatusresolved => closed
2014-11-10 17:52AugustoMauchFixed in Version => 3.0PR15Q1

Notes
(0071486)
hgbot   
2014-11-07 10:11   
Repository: erp/devel/pi
Changeset: d9ef82279509745a58bfea426bad6b996713f85f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 07 10:08:06 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d9ef82279509745a58bfea426bad6b996713f85f [^]

fixed 28117: can't delete multiple records at once in tabs based on cutom ds

  Multiple selection deletion doesn't delegete in datasource but it is executed
  by MultipleDeleteActionHandler, which is not able to delete from unknown DAL
  entitity.

  The fix makes an expcetion for this case delegating in the custom datasource.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/MultipleDeleteActionHandler.java
---
(0071487)
alostale   
2014-11-07 10:12   
Tested in the following scenarios:
-Multiple delete in standard window (ex. Sales Order)
-Multiple delete in a tree window (ex. Menu) from tree view and from grid view
-Multiple delete in a custom datasource based tab
(0071534)
AugustoMauch   
2014-11-10 17:52   
Code reviewed and verified in pi@d9ef82279509. Tested with this datasource [1], included in the Platform Features module.

[1] https://code.openbravo.com/erp/mods/org.openbravo.platform.features/rev/19ab5a0a0a73 [^]