2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

Fix values not updating in single doctypes (#104)

This commit is contained in:
Anto Christopher 2019-01-12 16:02:46 +05:30 committed by Faris Ansari
parent 3e6b741556
commit 7a0356f414

View File

@ -280,7 +280,7 @@ module.exports = class Database extends Observable {
}
async updateSingle(meta, doc, doctype) {
await this.deleteSingleValues();
await this.deleteSingleValues(doctype);
for (let field of meta.getValidFields({ withChildren: false })) {
let value = doc[field.fieldname];
if (value) {