"Vector.maxId_" doesn't reset after "empty()" is called
olizarevichroman opened this issue · 0 comments
olizarevichroman commented
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
.