Fixed vBulletin - Duplicate User Upgrade ID's should be handled better.

Slavik

XenForo moderator
Staff member
vBulletin allowed the same upgrade to be purchased multiple times and would save it with the same ID against a user.

This obviously creates an issue in XenForo which requires the ID's to be unique.

Code:
[XF\Db\DuplicateKeyException]
 MySQL query error [1062]: Duplicate entry '13449681-3' for key 'user_id_upgrade_id'
 
Thanks, we've got this sorted. If we detect that the user already has an active record for the upgrade then we attempt to adjust the start/end dates accordingly.

The only problem with this is it makes the dates look totally contiguous when they may not be, but it's roughly correct.
 
Back
Top Bottom