[fix] query param fixes
This commit is contained in:
parent
cdf8016bcd
commit
022ab63a0f
@ -185,7 +185,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=Fals
|
|||||||
"page_len": page_len
|
"page_len": page_len
|
||||||
}, as_dict=as_dict)
|
}, as_dict=as_dict)
|
||||||
|
|
||||||
def bom(doctype, txt, searchfield, filters, start=0, page_len=20):
|
def bom(doctype, txt, searchfield, start, page_len, filters):
|
||||||
conditions = []
|
conditions = []
|
||||||
|
|
||||||
return frappe.db.sql("""select tabBOM.name, tabBOM.item
|
return frappe.db.sql("""select tabBOM.name, tabBOM.item
|
||||||
@ -204,8 +204,8 @@ def bom(doctype, txt, searchfield, filters, start=0, page_len=20):
|
|||||||
{
|
{
|
||||||
'txt': "%%%s%%" % frappe.db.escape(txt),
|
'txt': "%%%s%%" % frappe.db.escape(txt),
|
||||||
'_txt': txt.replace("%", ""),
|
'_txt': txt.replace("%", ""),
|
||||||
'start': start,
|
'start': start or 0,
|
||||||
'page_len': page_len
|
'page_len': page_len or 20
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user