mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
Fix values not updating in single doctypes (#104)
This commit is contained in:
parent
3e6b741556
commit
7a0356f414
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user