Browse Source

fix(db_query): Add fallback value irrespective of operator

version-14
Gavin D'souza 3 years ago
parent
commit
09557ab8c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/model/db_query.py

+ 1
- 1
frappe/model/db_query.py View File

@@ -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"



Loading…
Cancel
Save