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

"Vector.maxId_" doesn't reset after "empty()" is called #443

Open
olizarevichroman opened this issue Apr 18, 2024 · 0 comments · May be fixed by #448
Open

"Vector.maxId_" doesn't reset after "empty()" is called #443

olizarevichroman opened this issue Apr 18, 2024 · 0 comments · May be fixed by #448
Labels
bug Something isn't working

Comments

@olizarevichroman
Copy link

1.5.6

core

Vector class doesn't reset maxId_ field when empty() method is called. It leads to issues when unsetting all consents.

I have a TCModel object assigned to variable tcModel.
For example I set a vendor consent for vendors 1000, 2000, 3000. Then I decided to withdraw them all and call tcModel.unsetAllVendorConsents() and this method internally calls tcModel.vendorConsents.empty(). In this case vendorConsents vector will be empty, but maxId will return 3000 cause empty() method doesn't consider maxId.

@olizarevichroman olizarevichroman added the bug Something isn't working label Apr 18, 2024
@olizarevichroman olizarevichroman changed the title "Vector.maxId_" is not doesn't reset after "empty()" is called "Vector.maxId_" doesn't reset after "empty()" is called Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant