Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011646Openbravo ERP01. General setuppublic2009-12-04 13:302009-12-10 00:00
networkb 
alostale 
immediatemajoralways
closedfixed 
5
2.50MP9 
2.50MP10 
Core
No
0011646: Error obtained when any field in Information tab of Organization window
The second time that you try to update any field of Information tab of Organization window, you get the following error:
"You are trying to save a record that is not up to date because it has been modified by another user/process.
Your changes will be lost!
You can revert your changes by reloading the current record from the database clicking on the reload button."

After this error is obtained you can not save any modification in that window.
1. General Setup || Enterprise || Organization: choose any organization and go to its Information tab
2. General Setup || Enterprise || Organization || Organization >> Information : modify any field and save.
3. Modify the same or any other field and try to save.

Also if you press in error "reload button" link and try to modify any field you get the error.
The problem seems to be in Information.java, in the following verification:

if (InformationData.getCurrentDBTimestamp(this, data.adClientId).equals(vars.getStringParameter("updatedTimestamp")))

As it is not filtering by organization, getCurrentDBTimestamp() gets the value of the first record so from second time you try to modify any field it fails.
No tags attached.
Issue History
2009-12-04 13:30networkbNew Issue
2009-12-04 13:30networkbAssigned To => rafaroda
2009-12-04 18:24networkbNote Added: 0022463
2009-12-04 18:24networkbSummaryError obtained when deleting an Image from an Image field => Error obtained when any field in Information tab of Organization window
2009-12-04 18:24networkbDescription Updated
2009-12-04 18:24networkbProposed Solution updated
2009-12-04 18:24networkbSteps to Reproduce Updated
2009-12-07 19:38psarobeStatusnew => scheduled
2009-12-07 19:38psarobeNote Added: 0022499
2009-12-07 19:38psarobeAssigned Torafaroda => alostale
2009-12-07 19:38psarobefix_in_branch => pi
2009-12-09 11:16hgbotCheckin
2009-12-09 11:16hgbotNote Added: 0022570
2009-12-09 11:16hgbotStatusscheduled => resolved
2009-12-09 11:16hgbotResolutionopen => fixed
2009-12-09 11:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d9b7efe339f611444b63841c584b45cf71887f2b [^]
2009-12-09 13:52iperdomoNote Added: 0022586
2009-12-09 13:52iperdomoStatusresolved => closed
2009-12-10 00:00anonymoussf_bug_id0 => 2911684

Notes
(0022463)
networkb   
2009-12-04 18:24   
issue updated with more details
(0022499)
psarobe   
2009-12-07 19:38   
you can reproduce consistently in small bazaar. Could this happen in other windows?
(0022570)
hgbot   
2009-12-09 11:16   
Repository: erp/devel/pi
Changeset: d9b7efe339f611444b63841c584b45cf71887f2b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 09 11:16:17 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d9b7efe339f611444b63841c584b45cf71887f2b [^]

fixed bug 11646: Error obtained when any field in Information tab of Organization window

---
M src-wad/src/org/openbravo/wad/Fields_data.xsql
M src-wad/src/org/openbravo/wad/Wad.java
M src/org/openbravo/erpCommon/utility/TableSQLData.java
---
(0022586)
iperdomo   
2009-12-09 13:52   
Tested on pi @ 90377f579921