diff --git a/projects/doctype/task/task.js b/projects/doctype/task/task.js index 8493920540..131b5fdfb5 100644 --- a/projects/doctype/task/task.js +++ b/projects/doctype/task/task.js @@ -34,7 +34,7 @@ erpnext.projects.Task = wn.ui.form.Controller.extend({ } }, - after_save: function() { + validate: function() { this.frm.doc.project && wn.model.remove_from_locals("Project", this.frm.doc.project); },