[linked with] show listview in linked with
This commit is contained in:
parent
37168a0b95
commit
336004ef0e
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue