1849
1845
self.duplicateof = duplicate_of
1850
1846
except LaunchpadValidationError, validation_error:
1851
1847
raise InvalidDuplicateValue(validation_error)
1853
1848
if duplicate_of is not None:
1854
1849
# Update the heat of the master bug and set this bug's heat
1855
1850
# to 0 (since it's a duplicate, it shouldn't have any heat
1857
1852
self.setHeat(0, affected_targets=affected_targets)
1858
1853
# Maybe confirm bug tasks, now that it has a duplicate.
1862
1856
# Otherwise, recalculate this bug's heat, since it will be 0
1863
1857
# from having been a duplicate. We also update the bug that