From 9938b29751dc475b73a3259efb242db664c8be2c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 1 Aug 2013 18:18:56 +0530 Subject: [PATCH] [minor] pass filters to cur_frm.get_doclist --- public/js/legacy/clientscriptAPI.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/public/js/legacy/clientscriptAPI.js b/public/js/legacy/clientscriptAPI.js index 482afc93b4..98b5ac9fc9 100644 --- a/public/js/legacy/clientscriptAPI.js +++ b/public/js/legacy/clientscriptAPI.js @@ -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); -} \ No newline at end of file +}; \ No newline at end of file