From 060617acb09cd0cb68e82b1ed0f0dbddd0ccbe9e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 1 Aug 2013 15:42:58 +0530 Subject: [PATCH] [fix] [minor] [mapper] --- webnotes/model/mapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)