Przeglądaj źródła

[hotfix] ignore validate_length for single doctypes (#4343)

version-14
Makarand Bauskar 7 lat temu
committed by Rushabh Mehta
rodzic
commit
6574920ca0
1 zmienionych plików z 4 dodań i 0 usunięć
  1. +4
    -0
      frappe/model/base_document.py

+ 4
- 0
frappe/model/base_document.py Wyświetl plik

@@ -530,6 +530,10 @@ class BaseDocument(object):
if frappe.flags.in_install:
return

if self.meta.issingle:
# single doctype value type is mediumtext
return

for fieldname, value in iteritems(self.get_valid_dict()):
df = self.meta.get_field(fieldname)
if df and df.fieldtype in type_map and type_map[df.fieldtype][0]=="varchar":


Ładowanie…
Anuluj
Zapisz