Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017480Openbravo ERPA. Platformpublic2011-06-02 17:032011-06-27 14:14
shuehner 
marvintm 
normalminorhave not tried
closedfixed 
5
 
3.0MP1 
Core
No
0017480: Can't add attachment to record B, with same name another attached an record A already has, when B has no attachemtns before.
Some logic mistake in the code searching for duplicate attachment names among the attachments of one record.
Add attachment with name 'test.txt' to a record A
Go to a different record B in the same tab which does not yet have any attachments.
Try to add an attachment to this record B with name also 'test.txt'

Expected: works
Currently: fails with message there's already an attachment with that name

Note: If b already has some attachment the same procedure works.
No tags attached.
Issue History
2011-06-02 17:03shuehnerNew Issue
2011-06-02 17:03shuehnerAssigned To => marvintm
2011-06-02 17:03shuehnerModules => Core
2011-06-08 16:24hgbotCheckin
2011-06-08 16:24hgbotNote Added: 0038172
2011-06-08 16:24hgbotStatusnew => resolved
2011-06-08 16:24hgbotResolutionopen => fixed
2011-06-08 16:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1aaaf03bf7806ef7a740414a3457d40ffad388bb [^]
2011-06-10 13:31plujanTarget Version => 3.0MP1
2011-06-27 14:14shuehnerNote Added: 0038538
2011-06-27 14:14shuehnerStatusresolved => closed

Notes
(0038172)
hgbot   
2011-06-08 16:24   
Repository: erp/devel/pi
Changeset: 1aaaf03bf7806ef7a740414a3457d40ffad388bb
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jun 08 16:23:36 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1aaaf03bf7806ef7a740414a3457d40ffad388bb [^]

Fixed issue 17480. Now attachments for current record are checked when a new attachment is created.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-attachments.js
---
(0038538)
shuehner   
2011-06-27 14:14   
Tested in pi/pgsql/chromium (rev: 9652da83413c). Now then adding attachments the 'duplicate-name' check does only check for duplicates in the same record. And not also in previously visited record. -> Closing