You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
1.5.6
core
Vector
class doesn't resetmaxId_
field whenempty()
method is called. It leads to issues when unsetting all consents.I have a
TCModel
object assigned to variabletcModel.
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 callstcModel.vendorConsents.empty()
. In this casevendorConsents
vector will be empty, butmaxId
will return 3000 causeempty()
method doesn't considermaxId
.The text was updated successfully, but these errors were encountered: