Browse Source

[linked with] show listview in linked with

version-14
Rushabh Mehta 11 years ago
parent
commit
336004ef0e
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      public/js/wn/form/linked_with.js
  2. +1
    -1
      webnotes/widgets/form/utils.py

+ 1
- 1
public/js/wn/form/linked_with.js View File

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


+ 1
- 1
webnotes/widgets/form/utils.py View File

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


Loading…
Cancel
Save