mirror of
https://github.com/frappe/books.git
synced 2024-12-25 20:11:15 +00:00
fix: Only validate model fields
This commit is contained in:
parent
879b57f698
commit
25f7e51312
@ -230,7 +230,7 @@ module.exports = class BaseDocument extends Observable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async validateFields() {
|
async validateFields() {
|
||||||
let fields = this.meta.getValidFields();
|
let fields = this.meta.fields;
|
||||||
for (let field of fields) {
|
for (let field of fields) {
|
||||||
await this.validateField(field.fieldname, this.get(field.fieldname));
|
await this.validateField(field.fieldname, this.get(field.fieldname));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user