try to fix #997 ,when cart is disabled, it will not show error and it will dedirect to 'contact' page (#8636)

This commit is contained in:
gmplab 2017-05-18 15:11:19 +08:00 committed by Rushabh Mehta
parent 32e453b8eb
commit 7607cc9dfa

View File

@ -315,7 +315,8 @@ def get_party(user=None):
else:
if not cart_settings.enabled:
return None
frappe.local.flags.redirect_location = "/contact"
raise frappe.Redirect
customer = frappe.new_doc("Customer")
fullname = get_fullname(user)
customer.update({