Minor fix in query report and doc

This commit is contained in:
Anand Doshi 2014-01-24 18:55:34 +05:30
parent 6703a31be4
commit e803d84b93
2 changed files with 2 additions and 3 deletions

View file

@ -348,8 +348,7 @@ class Document:
self.fields[f] = self._validate_link(link_list, f)
if old_val and not self.fields[f]:
s = link_list[f][1] + ': ' + old_val
err_list.append(s)
err_list.append("{}: {}".format(link_list[f][1], old_val))
return err_list

View file

@ -52,7 +52,7 @@ def get_script(report_name):
return script
@webnotes.whitelist()
def run(report_name, filters=None):
def run(report_name, filters=()):
from webnotes.plugins import get_code_and_execute
report = webnotes.doc("Report", report_name)