frappe / frappejs

Node + Electron + Vue based metadata web framework (inspired by Frappe)
263 stars 110 forks source link

Fix values not updating in a single doctype #104

Closed anto-christo closed 5 years ago

anto-christo commented 5 years ago

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.