diff --git a/website/doctype/contact_us_settings/contact_us_settings.py b/website/doctype/contact_us_settings/contact_us_settings.py index 740b651a17..8716e60724 100644 --- a/website/doctype/contact_us_settings/contact_us_settings.py +++ b/website/doctype/contact_us_settings/contact_us_settings.py @@ -10,9 +10,9 @@ class DocType: def onload(self): """load address""" if self.doc.query_options: - self.doc.query_options = filter(None, self.doc.query_options.replace(",", "\n").split()) + self.query_options = filter(None, self.doc.query_options.replace(",", "\n").split()) else: - self.doc.query_options = ["Sales", "Support", "General"] + self.query_options = ["Sales", "Support", "General"] if self.doc.address: self.address = webnotes.bean("Address", self.doc.address).doc diff --git a/website/templates/pages/contact.html b/website/templates/pages/contact.html index 204b6df317..79bcb04407 100644 --- a/website/templates/pages/contact.html +++ b/website/templates/pages/contact.html @@ -19,7 +19,7 @@

diff --git a/website/utils.py b/website/utils.py index 443bde0b66..97cec72dca 100644 --- a/website/utils.py +++ b/website/utils.py @@ -166,6 +166,7 @@ def prepare_args(page_name): args.update(webnotes.get_method(target)()) else: args.obj = webnotes.bean(page_settings_map[page_name]).obj + else: args = get_doc_fields(page_name)