mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Merge pull request #53171 from frappe/mergify/bp/version-16-hotfix/pr-52415
fix(project template): clear subject when task is empty (backport #52415)
This commit is contained in:
@@ -19,6 +19,13 @@ frappe.ui.form.on("Project Template", {
|
|||||||
frappe.ui.form.on("Project Template Task", {
|
frappe.ui.form.on("Project Template Task", {
|
||||||
task: function (frm, cdt, cdn) {
|
task: function (frm, cdt, cdn) {
|
||||||
var row = locals[cdt][cdn];
|
var row = locals[cdt][cdn];
|
||||||
|
|
||||||
|
if (!row.task) {
|
||||||
|
row.subject = null;
|
||||||
|
refresh_field("tasks");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
frappe.db.get_value("Task", row.task, "subject", (value) => {
|
frappe.db.get_value("Task", row.task, "subject", (value) => {
|
||||||
row.subject = value.subject;
|
row.subject = value.subject;
|
||||||
refresh_field("tasks");
|
refresh_field("tasks");
|
||||||
|
|||||||
@@ -368,6 +368,7 @@
|
|||||||
"options": "User"
|
"options": "User"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"allow_in_quick_entry": 1,
|
||||||
"default": "0",
|
"default": "0",
|
||||||
"fieldname": "is_template",
|
"fieldname": "is_template",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
@@ -404,11 +405,11 @@
|
|||||||
"is_tree": 1,
|
"is_tree": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"max_attachments": 5,
|
"max_attachments": 5,
|
||||||
"modified": "2025-10-16 08:39:12.214577",
|
"modified": "2026-02-05 09:58:38.052875",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Projects",
|
"module": "Projects",
|
||||||
"name": "Task",
|
"name": "Task",
|
||||||
"naming_rule": "Expression (old style)",
|
"naming_rule": "Expression",
|
||||||
"nsm_parent_field": "parent_task",
|
"nsm_parent_field": "parent_task",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
@@ -425,6 +426,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
|
"row_format": "Dynamic",
|
||||||
"search_fields": "subject",
|
"search_fields": "subject",
|
||||||
"show_name_in_global_search": 1,
|
"show_name_in_global_search": 1,
|
||||||
"show_preview_popup": 1,
|
"show_preview_popup": 1,
|
||||||
@@ -434,4 +436,4 @@
|
|||||||
"timeline_field": "project",
|
"timeline_field": "project",
|
||||||
"title_field": "subject",
|
"title_field": "subject",
|
||||||
"track_seen": 1
|
"track_seen": 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user