Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036767Openbravo ERPA. Platformpublic2017-09-01 12:482017-09-13 08:12
ngarcia 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR17Q1.43.0PR17Q1.4 
alostale
Core
Production - Confirmed Stable
2016-04-18
3.0PR16Q3
https://code.openbravo.com/erp/devel/pi/rev/82f27ac1b1497b3a82646b140ab1b6e048f2b766 [^]
No
0036767: Update information of attachments is not changed after replacing an already attached file
Update information of attachments is not changed after replacing an already attached file.

It seems the updated column of the c_file table is not updated when a file is replaced
As group admin role:
   Go to Sales Invoice window
   Add an attachment to it
   Wait at least a minute in order to see its update information as '1 minutes ago by ...'
   Modify the file
   Add it again to the same invoice
   The applications shows:
   "The file you are trying to upload already exists, so it will be replaced by the new one. Are you sure you want to continue?"
   Select OK

   Check the update information remains the same. It should be updated to '0 minutes ago by ...'
No tags attached.
blocks defect 0036763 closed caristu Update information of attachments is not changed after replacing an already attached file 
Issue History
2017-09-01 14:49caristuTypedefect => backport
2017-09-01 14:49caristuTarget Version => 3.0PR17Q1.4
2017-09-04 10:19hgbotCheckin
2017-09-04 10:19hgbotNote Added: 0098794
2017-09-04 10:19hgbotStatusscheduled => resolved
2017-09-04 10:19hgbotResolutionopen => fixed
2017-09-04 10:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/b790cea8f958f4d9912efde252b501c5a87aaba3 [^]
2017-09-04 10:20caristuReview Assigned To => alostale
2017-09-11 12:13hgbotCheckin
2017-09-11 12:13hgbotNote Added: 0098938
2017-09-12 15:55hgbotCheckin
2017-09-12 15:55hgbotNote Added: 0098988
2017-09-13 08:12alostaleNote Added: 0099001
2017-09-13 08:12alostaleStatusresolved => closed
2017-09-13 08:12alostaleFixed in Version => 3.0PR17Q1.4

Notes
(0098794)
hgbot   
2017-09-04 10:19   
Repository: erp/backports/3.0PR17Q1.4
Changeset: b790cea8f958f4d9912efde252b501c5a87aaba3
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Sep 04 09:23:10 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/b790cea8f958f4d9912efde252b501c5a87aaba3 [^]

fixes bug 36767: Audit info not updated when replacing an already attached file

  The audit information (updated, updated by fields) of the attachments was not being updated after replacing an already attached file. In this case the OBInterceptor was not being invoked because the information of the attachment (BaseOBObject) was indeed not changing.

  To fix this problem we explicitly change the 'updated' date of the attachment and the OBInterceptor will take care of update the rest of the audit information (updated by).

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachImplementationManager.java
---
(0098938)
hgbot   
2017-09-11 12:13   
Repository: erp/backports/3.0PR17Q1.4
Changeset: bf64eb687e6236dd58a6d7f837d7fe61bff97d14
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Sep 11 12:05:17 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/bf64eb687e6236dd58a6d7f837d7fe61bff97d14 [^]

related to bug 36767: Update attachment last update when metadata also changes

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachmentUtils.java
---
(0098988)
hgbot   
2017-09-12 15:55   
Repository: erp/backports/3.0PR17Q1.4
Changeset: 42c9f62964e2a49856ed4598140bc3001a61661c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Sep 12 15:50:45 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/42c9f62964e2a49856ed4598140bc3001a61661c [^]

related to bug 36767: last update not updated when removing description

  The last updated information is now updated when the description of an existing attachment is cleared. This was not happening before, because the record in the OBUIAPP_Parameter_Value table was removed when the value to be assigned is null

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/attachment/AttachImplementationManager.java
---
(0099001)
alostale   
2017-09-13 08:12   
reviewed

tested cases:

1. replaced file with same name
2. edited description
3. having a description, it gets removed
4. adding modifications in an extra parameter in attachment method