reset added on remove

This commit is contained in:
j 2016-01-19 10:51:27 +05:30
parent 72e6823c3b
commit 906d48a04b

View file

@ -448,6 +448,7 @@ class Item(db.Model):
if not self.users:
self.delete()
else:
self.added = None
self.update()
Transfer.query.filter_by(item_id=self.id).delete()
Changelog.record(user, 'removeitem', self.id)