When performing an update operation on a single doctype, altogether a new document was getting inserted in the SingleValue table instead of updating the desired field of the single doctype in consideration.
The issue was with the name of single doctype not being passed as a parameter to deleteSingleValues function. Hence, the fields of the doctype were not getting deleted before inserting the modified doctype.
When performing an update operation on a single doctype, altogether a new document was getting inserted in the SingleValue table instead of updating the desired field of the single doctype in consideration.
The issue was with the name of single doctype not being passed as a parameter to deleteSingleValues function. Hence, the fields of the doctype were not getting deleted before inserting the modified doctype.