contact us page problem fixed.

This commit is contained in:
Akhilesh Darjee 2013-03-22 18:05:22 +05:30
parent 34c13ac52c
commit c3fde66f2c
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -19,7 +19,7 @@
</div>
<div class="clearfix"></div>
<p><select class="span6" name="subject">
{% for option in obj.doc.query_options %}
{% for option in obj.query_options %}
<option value="{{ option }}">{{ option }}</option>
{% endfor %}
</select></p>

View File

@ -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)