Procházet zdrojové kódy

Merge pull request #388 from nabinhait/hotfix

Load extra doctypes while building filter conditions
version-14
Nabin Hait před 11 roky
rodič
revize
d4d05f3e07
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. +4
    -2
      webnotes/widgets/reportview.py

+ 4
- 2
webnotes/widgets/reportview.py Zobrazit soubor

@@ -169,12 +169,14 @@ def build_filter_conditions(filters, conditions):
if isinstance(f, basestring):
conditions.append(f)
else:
tname = ('`tab' + f[0] + '`')
if not tname in webnotes.local.reportview_tables:
webnotes.local.reportview_tables.append(tname)
if not hasattr(webnotes.local, "reportview_doctypes"):
load_doctypes()
if not hasattr(webnotes.local, "reportview_doctypes") \
or not webnotes.local.reportview_doctypes.has_key(tname):
load_doctypes()
# prepare in condition
if f[2] in ['in', 'not in']:


Načítá se…
Zrušit
Uložit