Fix a bug when updating the forward address

master
Pierre Jaury 9 years ago
parent 8e3d1eb5ac
commit e22f4b29b6

@ -109,10 +109,7 @@ def user_forward(user_email):
user = utils.get_user(user_email)
form = forms.UserForwardForm(obj=user)
if form.validate_on_submit():
if form.forward_enabled:
user.forward = form.forward.data
else:
user.forward = None
form.populate_obj(user)
db.session.commit()
flask.flash('Forward destination updated for %s' % user)
if user_email:

Loading…
Cancel
Save