From 2b403c2b31e589213f945a0077261254305fd817 Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Thu, 7 Mar 2019 18:41:38 +0530 Subject: [PATCH 1/2] fix: Datatype for comment --- frappe/core/doctype/comment/comment.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/comment/comment.json b/frappe/core/doctype/comment/comment.json index 344d6399b9..82c18a6520 100644 --- a/frappe/core/doctype/comment/comment.json +++ b/frappe/core/doctype/comment/comment.json @@ -87,7 +87,7 @@ "collapsible": 0, "columns": 0, "fieldname": "subject", - "fieldtype": "Data", + "fieldtype": "Text", "hidden": 0, "ignore_user_permissions": 0, "ignore_xss_filter": 0, @@ -476,7 +476,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2019-02-08 09:18:33.843171", + "modified": "2019-03-07 18:39:37.598451", "modified_by": "Administrator", "module": "Core", "name": "Comment", From 2fac689455dc5d8f2a906a31f9bef85be6fdb4fe Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Thu, 7 Mar 2019 22:15:04 +0530 Subject: [PATCH 2/2] fix: Reload comment doctype --- frappe/patches/v12_0/setup_comments_from_communications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/patches/v12_0/setup_comments_from_communications.py b/frappe/patches/v12_0/setup_comments_from_communications.py index 92256e130e..1a7a5aef84 100644 --- a/frappe/patches/v12_0/setup_comments_from_communications.py +++ b/frappe/patches/v12_0/setup_comments_from_communications.py @@ -3,6 +3,8 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doctype("Comment") + for comment in frappe.get_all('Communication', fields = ['*'], filters = dict(communication_type = 'Comment')):