mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
[minor] [item] on adding image, add description html if it is empty
This commit is contained in:
@@ -193,4 +193,6 @@ cur_frm.cscript.copy_from_item_group = function(doc) {
|
|||||||
|
|
||||||
cur_frm.cscript.image = function() {
|
cur_frm.cscript.image = function() {
|
||||||
refresh_field("image_view");
|
refresh_field("image_view");
|
||||||
|
|
||||||
|
if(!cur_frm.doc.description_html) cur_frm.cscript.add_image(cur_frm.doc);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user