mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +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) {
|
async updateSingle(meta, doc, doctype) {
|
||||||
await this.deleteSingleValues();
|
await this.deleteSingleValues(doctype);
|
||||||
for (let field of meta.getValidFields({ withChildren: false })) {
|
for (let field of meta.getValidFields({ withChildren: false })) {
|
||||||
let value = doc[field.fieldname];
|
let value = doc[field.fieldname];
|
||||||
if (value) {
|
if (value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user