Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020278Openbravo ERPB. User interfacepublic2012-04-16 16:402012-09-16 19:52
dbaz 
dbaz 
highmajoralways
closedfixed 
5
 
 
guilleaer
Core
No
0020278: [SC Upgrade] You can not save twice a form after upgrade to SC 8.3d 2012-03-12 (or later)
You can not save twice a form after upgrade to SC 8.3d 2012-03-12 (or later)
With an instance upgraded to Smartclient 8.3d 2012-03-12 (or later)
Login into the application.
Open any window in form view and make any change and press "Save" button
The record is save ok
Without closing the form view, do any other change and press "Save" button again.
The following message is shown:

Error:
Saving failed. The record you are saving has already been changed by another user or process. Refresh the data by clicking the refresh button, you will loose your current changes
No tags attached.
Issue History
2012-04-16 16:40dbazNew Issue
2012-04-16 16:40dbazAssigned To => dbaz
2012-04-16 16:40dbazModules => Core
2012-04-18 19:06mtaalNote Added: 0047721
2012-04-18 19:53mtaalStatusnew => scheduled
2012-04-18 19:53mtaalNote Added: 0047722
2012-04-18 19:53mtaalfix_in_branch => pi
2012-04-18 19:53mtaalNote Added: 0047723
2012-04-18 19:53mtaalStatusscheduled => resolved
2012-04-18 19:53mtaalFixed in SCM revision => 042e65fa947c
2012-04-18 19:53mtaalResolutionopen => fixed
2012-04-26 13:52dbazNote Added: 0048028
2012-04-26 13:52dbazStatusresolved => new
2012-04-26 13:52dbazResolutionfixed => open
2012-04-26 15:18alostaleNote Added: 0048035
2012-04-26 15:18alostaleTypedefect => design defect
2012-04-26 15:18alostalefix_in_branchpi =>
2012-04-30 14:52dbazNote Added: 0048199
2012-05-02 22:13hgbotCheckin
2012-05-02 22:13hgbotNote Added: 0048278
2012-05-02 22:13hgbotStatusnew => resolved
2012-05-02 22:13hgbotResolutionopen => fixed
2012-05-02 22:13hgbotFixed in SCM revision042e65fa947c => http://code.openbravo.com/erp/devel/pi/rev/042e65fa947c15f5e3cc67bfa1d8bebdf3c306fe [^]
2012-05-02 22:22hgbotCheckin
2012-05-02 22:22hgbotNote Added: 0048295
2012-05-21 16:17guilleaerNote Added: 0048812
2012-05-21 16:17guilleaerStatusresolved => closed
2012-05-21 16:17guilleaerFixed in Version => pi
2012-05-25 12:08hudsonbotCheckin
2012-05-25 12:08hudsonbotNote Added: 0048972
2012-05-25 12:09hudsonbotCheckin
2012-05-25 12:09hudsonbotNote Added: 0048989
2012-05-25 17:54guilleaerAssigned Todbaz => guilleaer
2012-05-25 17:54guilleaerNote Added: 0049225
2012-05-25 17:54guilleaerStatusclosed => new
2012-05-25 17:54guilleaerResolutionfixed => open
2012-05-25 17:54guilleaerFixed in Versionpi =>
2012-05-25 17:54guilleaerStatusnew => scheduled
2012-05-25 17:54guilleaerNote Added: 0049226
2012-05-25 17:54guilleaerfix_in_branch => pi
2012-05-25 17:54guilleaerNote Added: 0049227
2012-05-25 17:54guilleaerStatusscheduled => resolved
2012-05-25 17:54guilleaerFixed in Version => 3.0MP12
2012-05-25 17:54guilleaerResolutionopen => fixed
2012-05-25 17:54guilleaerNote Added: 0049228
2012-05-25 17:54guilleaerStatusresolved => closed
2012-09-16 19:51guilleaerAssigned Toguilleaer => dbaz
2012-09-16 19:51guilleaerStatusclosed => new
2012-09-16 19:51guilleaerResolutionfixed => open
2012-09-16 19:51guilleaerFixed in Version3.0MP12 =>
2012-09-16 19:52guilleaerStatusnew => scheduled
2012-09-16 19:52guilleaerStatusscheduled => resolved
2012-09-16 19:52guilleaerResolutionopen => fixed
2012-09-16 19:52guilleaerClosed by => guilleaer
2012-09-16 19:52guilleaerStatusresolved => closed

Notes
(0047721)
mtaal   
2012-04-18 19:06   
The cause of the issue is that server side changes in the object values are not placed back in the form. In this case the 'updated' field is not updated with the new value. This means that a next save will use an old updated value, causing an optimistic locking error in the server.

See this question asked on the smartclient forum:
http://forums.smartclient.com/showthread.php?p=84866#post84866 [^]
(0047722)
mtaal   
2012-04-18 19:53   
Scheduled
(0047723)
mtaal   
2012-04-18 19:53   
Fixed here, close after moving stuff back to pi.
https://code.openbravo.com/erp/devel/pi-rtl/rev/042e65fa947c [^]
(0048028)
dbaz   
2012-04-26 13:52   
Reopened. It will be automatically marked as "resolved" once pi-rtl be merged back to pi
(0048035)
alostale   
2012-04-26 15:18   
Setting as design defect: it is not an issue in current pi.
(0048199)
dbaz   
2012-04-30 14:52   
Reverted previous changeset since it has been already fixed with the 2012-04-29 Smartclient 8.3d upgrade

https://code.openbravo.com/erp/devel/pi-rtl/rev/3c048f3d7822 [^]
(0048278)
hgbot   
2012-05-02 22:13   
Repository: erp/devel/pi
Changeset: 042e65fa947c15f5e3cc67bfa1d8bebdf3c306fe
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Apr 18 19:52:14 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/042e65fa947c15f5e3cc67bfa1d8bebdf3c306fe [^]

Fixes issue 20278: [SC Upgrade] You can not save twice a form after upgrade to SC 8.3d 2012-03-12 (or later)

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-datetime.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0048295)
hgbot   
2012-05-02 22:22   
Repository: erp/devel/pi
Changeset: 3c048f3d7822a979a1363dd1b53aa60544d7ab14
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Mon Apr 30 14:51:50 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3c048f3d7822a979a1363dd1b53aa60544d7ab14 [^]

Related to issue 20278: Reverted previous changeset since it has been already fixed
with the 2012-04-29 Smartclient 8.3d upgrade

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-datetime.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0048812)
guilleaer   
2012-05-21 16:17   
verified in pi@87340d8f38a3
(0048972)
hudsonbot   
2012-05-25 12:08   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test
(0048989)
hudsonbot   
2012-05-25 12:09   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test
(0049225)
guilleaer   
2012-05-25 17:54   
Changing Fixed in Version to 3.0MP12
(0049226)
guilleaer   
2012-05-25 17:54   
Changing Fixed in Version to 3.0MP12
(0049227)
guilleaer   
2012-05-25 17:54   
Changing Fixed in Version to 3.0MP12
(0049228)
guilleaer   
2012-05-25 17:54   
Changing Fixed in Version to 3.0MP12