Преглед на файлове

Merge branch 'master' of github.com:webnotes/wnframework into website-wip

version-14
Anand Doshi преди 12 години
родител
ревизия
ad5848d580
променени са 3 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. +4
    -2
      public/js/wn/model/meta.js
  2. +3
    -3
      public/js/wn/views/query_report.js
  3. +0
    -1
      webnotes/test_runner.py

+ 4
- 2
public/js/wn/model/meta.js Целия файл

@@ -117,7 +117,7 @@ $.extend(wn.meta, {
var currency = wn.boot.sysdefaults.currency;
if(!doc && cur_frm)
doc = cur_frm.doc;
if(df && df.options) {
if(doc && df.options.indexOf(":")!=-1) {
var options = df.options.split(":");
@@ -127,7 +127,9 @@ $.extend(wn.meta, {
if(!docname && cur_frm) {
docname = cur_frm.doc[options[1]];
}
currency = wn.model.get_value(options[0], docname, options[2]) || currency;
currency = wn.model.get_value(options[0], docname, options[2]) ||
wn.model.get_value(":" + options[0], docname, options[2]) ||
currency;
}
} else if(doc && doc[df.options]) {
currency = doc[df.options];


+ 3
- 3
public/js/wn/views/query_report.js Целия файл

@@ -188,9 +188,9 @@ wn.views.QueryReport = Class.extend({
if(c.indexOf(":")!=-1) {
var opts = c.split(":");
var df = {
label: opts.slice(0, opts.length - 2).join(":"),
fieldtype: opts[opts.length - 2],
width: opts[opts.length - 1]
label: opts.length<=2 ? opts[0] : opts.slice(0, opts.length - 2).join(":"),
fieldtype: opts.length<=2 ? opts[1] : opts[opts.length - 2],
width: opts.length<=2 ? opts[2] : opts[opts.length - 1]
}
if(!df.fieldtype)


+ 0
- 1
webnotes/test_runner.py Целия файл

@@ -50,7 +50,6 @@ def get_dependencies(doctype):
for doctype_name in test_module.test_ignore:
if doctype_name in options_list:
options_list.remove(doctype_name)
return options_list

def make_test_records_for_doctype(doctype, verbose=0):


Зареждане…
Отказ
Запис