// Copyright (c) 2019, Frappe Technologies and contributors
// For license information, please see license.txt

frappe.ui.form.on('Personal Data Download Request', {
	onload: function(frm){
		frm.doc.user = frappe.session.user;
	},
});

@@ -181,18 +181,42 @@
 ion(frm)
+ 
 %7B%0A
+%09%09if (frm.is_new()) %7B%0A%09
 %09%09frm.do
@@ -245,16 +245,20 @@
 n.user;%0A
+%09%09%7D%0A
 %09%7D,%0A%7D);%0A

Set session user only for new document (#7837)