[fix] mapper

This commit is contained in:
Rushabh Mehta 2015-03-27 10:58:27 +05:30
parent f02a21f3d0
commit 3be7d4b2c0
2 changed files with 3 additions and 2 deletions

View file

@ -77,8 +77,8 @@ def map_doc(source_doc, target_doc, table_map, source_parent=None):
def map_fields(source_doc, target_doc, table_map, source_parent):
no_copy_fields = set([d.fieldname for d in source_doc.meta.get("fields") if (d.no_copy==1 or d.fieldtype=="Table")]
+ [d.fieldname for d in target_doc.meta.get("fields") if (d.no_copy==1 or d.fieldtype=="Table")]
+ default_fields
+ table_map.get("field_no_map", []))
+ list(default_fields)
+ list(table_map.get("field_no_map", [])))
for df in target_doc.meta.get("fields"):
if df.fieldname not in no_copy_fields:

View file

@ -1201,6 +1201,7 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
this.switcher = $('<p class="text-right small">\
<a href="#" class="switcher"></a></p>')
.appendTo(this.input_area)
.find("a")
.click(function() {
me.switch();
return false;