Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ODocument.getOriginalValue() result [moved] #238

Closed
lvca opened this issue Dec 10, 2012 · 0 comments
Closed

Wrong ODocument.getOriginalValue() result [moved] #238

lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 238 moved from a Google Code project.
Added by 2011-02-20T13:20:41.000Z by sylvain....@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v0.9.25

Original description

1. load a record with an indexed property filled (value == 'A') 
2. change the property value to 'B'.
3. change the property value to 'C' (without saving before).
4. save and commit.
5. The method record.getOriginalValue(iPropertyName) return 'B' and not 'A', so the OPropertyIndexManager will not correctly update the index for the old value.

Here a test case and a patch that correct the problem.

Note : I think tha there is a similar problem with remove fields : the ODocument.getDirtyFields() should return more fields that those are really updated (create and remove a field before saving). It's perhaps a less important issue.
@lvca lvca closed this as completed Dec 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant