diff --git a/webnotes/model/mapper.py b/webnotes/model/mapper.py index 0c46703e5b..744bde7526 100644 --- a/webnotes/model/mapper.py +++ b/webnotes/model/mapper.py @@ -26,8 +26,11 @@ from webnotes import _ from webnotes.utils import cstr from webnotes.model import default_fields -def get_mapped_doclist(from_doctype, from_docname, table_maps, target_doclist=[], +def get_mapped_doclist(from_doctype, from_docname, table_maps, target_doclist=None, postprocess=None, ignore_permissions=False): + if target_doclist is None: + target_doclist = [] + if isinstance(target_doclist, basestring): target_doclist = json.loads(target_doclist)