fix(copy_doc): don't copy password fields
* this leads to surprises!
This commit is contained in:
parent
87a4c03850
commit
1997c7ebac
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ $.extend(frappe.model, {
|
|||
df &&
|
||||
key.substr(0, 2) != "__" &&
|
||||
!no_copy_list.includes(key) &&
|
||||
!(df && !from_amend && cint(df.no_copy) == 1)
|
||||
!(df && !from_amend && cint(df.no_copy) == 1) &&
|
||||
df.fieldtype !== "Password"
|
||||
) {
|
||||
var value = doc[key] || [];
|
||||
if (frappe.model.table_fields.includes(df.fieldtype)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue