Sfoglia il codice sorgente

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

version-14
Makarand Bauskar 7 anni fa
committed by Rushabh Mehta
parent
commit
6574920ca0
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      frappe/model/base_document.py

+ 4
- 0
frappe/model/base_document.py Vedi File

@@ -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":


Caricamento…
Annulla
Salva