[linked with] show listview in linked with

This commit is contained in:
Rushabh Mehta 2013-11-26 11:22:13 +05:30
parent 37168a0b95
commit 336004ef0e
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ wn.ui.form.LinkedWith = Class.extend({
listview.no_delete = true;
$("<h4>").html(wn._(doctype)).appendTo(parent);
$.each(r.message[doctype].values, function(i, d) {
$.each(r.message[doctype], function(i, d) {
d.doctype = doctype;
listview.render($("<div>").appendTo(parent), d, me);
})

View file

@ -107,7 +107,7 @@ def get_linked_docs(doctype, name, metadata_loaded=[]):
filters=[[dt, link.get("fieldname"), '=', name]])
if ret:
results[dt] = {"values":ret, "list_js":linkmeta[0].get("__list_js")}
results[dt] = ret
if not dt in metadata_loaded:
if not "docs" in webnotes.local.response: