Co-authored-by: ci2014 <christoph.isik@wpci.de> Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
5652483176
commit
6eb8b3e64b
1 changed files with 3 additions and 0 deletions
|
|
@ -224,6 +224,9 @@ frappe.views.InteractionComposer = class InteractionComposer {
|
|||
if (!("owner" in interaction_values)){
|
||||
interaction_values["owner"] = frappe.session.user;
|
||||
}
|
||||
if (!("assigned_by" in interaction_values) && interaction_values["doctype"] == "ToDo") {
|
||||
interaction_values["assigned_by"] = frappe.session.user;
|
||||
}
|
||||
return frappe.call({
|
||||
method:"frappe.client.insert",
|
||||
args: { doc: interaction_values},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue