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

TimeEntry.Equals returns false on same object #229

Open
AtomCrafty opened this issue Jul 17, 2019 · 0 comments
Open

TimeEntry.Equals returns false on same object #229

AtomCrafty opened this issue Jul 17, 2019 · 0 comments
Assignees

Comments

@AtomCrafty
Copy link

AtomCrafty commented Jul 17, 2019

Apparently TimeEntry.Equals sometimes returns false when passed the same object it was called on:

> entry.Equals(entry)
false

entry equals entry

Note that we are using custom fields, but entry.CustomFields.Equals(entry.CustomFields) returns true, so it shouldn't be the cause.

We temporarily fixed it by replacing _localEntries.Remove(entry)
by _localEntries.RemoveAll(l => l == entry), but this should be looked into :)

@zapadi zapadi self-assigned this Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants