[fixes] image view get hide after submit

This commit is contained in:
rohitwaghchaure 2016-03-15 14:11:10 +05:30
parent 79b2c4e9f3
commit a67de307d0

View file

@ -67,7 +67,7 @@ frappe.ui.form.Control = Class.extend({
// hide if no value
if (this.doctype && status==="Read"
&& is_null(frappe.model.get_value(this.doctype, this.docname, this.df.fieldname))
&& !in_list(["HTML"], this.df.fieldtype)) {
&& !in_list(["HTML", "Image"], this.df.fieldtype)) {
if(explain) console.log("By Hide Read-only, null fields: None");
status = "None";
}