From f42b5ff3a241282f2ef99f4cabd9809abdb1e216 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 27 Nov 2012 15:46:20 +0530 Subject: [PATCH] for dt_map --> pass doclist if lenght of docs > 1 --- webnotes/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/handler.py b/webnotes/handler.py index 98f79e7d47..ad59297aeb 100755 --- a/webnotes/handler.py +++ b/webnotes/handler.py @@ -92,7 +92,7 @@ def dt_map(): from_to_list = form_dict.get('from_to_list') dm = get_obj('DocType Mapper', from_doctype +'-' + to_doctype) - dl = dm.dt_map(from_doctype, to_doctype, from_docname, Document(fielddata = dt_list[0]), [], from_to_list) + dl = dm.dt_map(from_doctype, to_doctype, from_docname, Document(fielddata = dt_list[0]), (len(dt_list) > 1 and dt_list or []), from_to_list) webnotes.response['docs'] = dl