[minor] pass filters to cur_frm.get_doclist
This commit is contained in:
parent
b70d219dbd
commit
9938b29751
1 changed files with 3 additions and 7 deletions
|
|
@ -140,8 +140,8 @@ _f.Frm.prototype.get_doc = function() {
|
|||
return locals[this.doctype][this.docname];
|
||||
}
|
||||
|
||||
_f.Frm.prototype.get_doclist = function() {
|
||||
return make_doclist(this.doctype, this.docname);
|
||||
_f.Frm.prototype.get_doclist = function(filters) {
|
||||
return wn.model.get_doclist(this.doctype, this.docname, filters);
|
||||
}
|
||||
|
||||
_f.Frm.prototype.field_map = function(fnames, fn) {
|
||||
|
|
@ -255,8 +255,4 @@ _f.Frm.prototype.call = function(opts) {
|
|||
|
||||
_f.Frm.prototype.get_field = function(field) {
|
||||
return cur_frm.fields_dict[field];
|
||||
}
|
||||
|
||||
_f.Frm.prototype.get_doclist = function() {
|
||||
return wn.model.get_doclist(this.doctype, this.docname);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue