refactor: do not set default priority in isssues

This commit is contained in:
Saqib Ansari 2021-11-24 13:52:20 +05:30
parent cb52e6dd6b
commit 9047e2b9dd
2 changed files with 2 additions and 3 deletions

View File

@ -123,7 +123,6 @@
"search_index": 1 "search_index": 1
}, },
{ {
"default": "Medium",
"fieldname": "priority", "fieldname": "priority",
"fieldtype": "Link", "fieldtype": "Link",
"in_list_view": 1, "in_list_view": 1,
@ -410,10 +409,11 @@
"icon": "fa fa-ticket", "icon": "fa fa-ticket",
"idx": 7, "idx": 7,
"links": [], "links": [],
"modified": "2021-06-10 03:22:27.098898", "modified": "2021-11-24 13:13:10.276630",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Support", "module": "Support",
"name": "Issue", "name": "Issue",
"naming_rule": "By \"Naming Series\" field",
"owner": "Administrator", "owner": "Administrator",
"permissions": [ "permissions": [
{ {

View File

@ -18,7 +18,6 @@ frappe.listview_settings['Issue'] = {
}, },
get_indicator: function(doc) { get_indicator: function(doc) {
if (doc.status === 'Open') { if (doc.status === 'Open') {
if (!doc.priority) doc.priority = 'Medium';
const color = { const color = {
'Low': 'yellow', 'Low': 'yellow',
'Medium': 'orange', 'Medium': 'orange',