Minor fix in query report and doc
This commit is contained in:
parent
6703a31be4
commit
e803d84b93
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue