Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011878Openbravo ERP02. Master data managementpublic2009-12-29 12:112012-01-30 15:32
plujan 
marvintm 
normalminorhave not tried
closedduplicate 
5
pi 
 
Core
No
0011878: Organizations images can become orphans
I created a new organization, then I went to Information tab. There is an image created for that tab (inherited from the client image I suppose).
So I can delete the record in Information, but stored image is still there (you can check it by querying the database). That means that the image is not reachable anymore using the ERP (it only can be deleted with a sql query)
1. Create a new organization with default data
2. Go to Organization window, and open the created organization
3. Move to Information tab
4. Check that an image exist
5. Click on Delete Record button to delete current record
6. Record is deleted.
7. Now check in the database that AD_Image table still have a link to created Organization. So that image is an orphan now.
I think the best way is to raise an error when deleting the Information record saying that the image has to be deleted first.

Additional note: This issue is closely related to feature request 0007599
No tags attached.
duplicate of feature request 0010657 new marvintm Images are not deleted when an entity that references them is removed 
related to feature request 0007599 acknowledged rmorley New process: Delete Organization 
Issue History
2009-12-29 12:11plujanNew Issue
2009-12-29 12:11plujanAssigned To => rafaroda
2009-12-29 12:11plujanRelationship addedrelated to 0007599
2010-02-11 18:32rafarodaAssigned Torafaroda => alostale
2010-02-13 21:34iciordiaAssigned Toalostale => marvintm
2010-02-13 21:37iciordiaStatusnew => scheduled
2010-02-13 21:37iciordiaNote Added: 0024221
2010-02-13 21:37iciordiafix_in_branch => pi
2012-01-30 15:32marvintmRelationship addedduplicate of 0010657
2012-01-30 15:32marvintmStatusscheduled => closed
2012-01-30 15:32marvintmResolutionopen => duplicate

Notes
(0024221)
iciordia   
2010-02-13 21:37   
Antonio, can you please check that the image window can not edit BLOB images? If it can then those orphan images could be deleted from that window.

Ismael