|
@@ -703,8 +703,8 @@ class BaseDocument(object): |
|
|
sanitized_value = value |
|
|
sanitized_value = value |
|
|
|
|
|
|
|
|
if df and (df.get("ignore_xss_filter") |
|
|
if df and (df.get("ignore_xss_filter") |
|
|
or (df.get("fieldtype")=="Code" and df.get("options")!="Email") |
|
|
|
|
|
or df.get("fieldtype") in ("Attach", "Attach Image", "Barcode") |
|
|
|
|
|
|
|
|
or (df.get("fieldtype") in ("Data", "Small Text", "Text") and df.get("options")=="Email") |
|
|
|
|
|
or df.get("fieldtype") in ("Attach", "Attach Image", "Barcode", "Code") |
|
|
|
|
|
|
|
|
# cancelled and submit but not update after submit should be ignored |
|
|
# cancelled and submit but not update after submit should be ignored |
|
|
or self.docstatus==2 |
|
|
or self.docstatus==2 |
|
|