fix: update deprecated string method

This commit is contained in:
Hussain Nagaria 2024-12-31 22:30:06 +05:30
parent 7bfc94b7b0
commit 0095e86a69

View file

@ -292,7 +292,7 @@ $.extend(frappe.model, {
if (
df &&
key.substr(0, 2) != "__" &&
key.substring(0, 2) != "__" &&
!no_copy_list.includes(key) &&
!(df && !from_amend && cint(df.no_copy) == 1) &&
df.fieldtype !== "Password"