Przeglądaj źródła

reload mapper entry if validation logic changed

version-14
Nabin Hait 14 lat temu
rodzic
commit
cb3a76fe9e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      cgi-bin/webnotes/utils/transfer.py

+ 1
- 1
cgi-bin/webnotes/utils/transfer.py Wyświetl plik

@@ -316,7 +316,7 @@ class UpdateDocTypeMapper(UpdateDocumentMerge):
if d.doctype=='Field Mapper Detail':
return webnotes.conn.sql("select name from `tabField Mapper Detail` where from_field=%s and to_field=%s and match_id=%s and parent=%s", (d.from_field, d.to_field, d.match_id, d.parent))
elif d.doctype=='Table Mapper Detail':
return webnotes.conn.sql("select name from `tabTable Mapper Detail` where from_table=%s and to_table = %s and match_id=%s and parent=%s", (d.from_table, d.to_table, d.match_id, d.parent))
return webnotes.conn.sql("select name from `tabTable Mapper Detail` where from_table=%s and to_table = %s and match_id=%s and validation_logic=%s and parent=%s", (d.from_table, d.to_table, d.match_id, d.validation_logic, d.parent))
def get_orignal_values(self, d):
if d.doctype in ['Field Mapper Detail', 'Table Mapper Detail']:


Ładowanie…
Anuluj
Zapisz