diff --git a/frappe/templates/includes/comments/comments.html b/frappe/templates/includes/comments/comments.html index 87241ed075..ffd09523af 100644 --- a/frappe/templates/includes/comments/comments.html +++ b/frappe/templates/includes/comments/comments.html @@ -91,7 +91,7 @@ route: "{{ pathname }}", } - if(!args.comment) { + if(!args.comment || !args.comment.trim()) { frappe.msgprint("{{ _("Please add a valid comment.") }}"); return false; }