Explorar el Código

fix(db_query): Add fallback value irrespective of operator

version-14
Gavin D'souza hace 3 años
padre
commit
09557ab8c7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      frappe/model/db_query.py

+ 1
- 1
frappe/model/db_query.py Ver fichero

@@ -492,7 +492,7 @@ class DatabaseQuery(object):
f.value = date_range
fallback = "'0001-01-01 00:00:00'"

if f.operator in ('>', '<') and (f.fieldname in ('creation', 'modified')):
if (f.fieldname in ('creation', 'modified')):
value = cstr(f.value)
fallback = "NULL"



Cargando…
Cancelar
Guardar