Merge pull request #9186 from benknowles/patch-3
fix: global search index breaking on long titles
This commit is contained in:
commit
710ac6b194
1 changed files with 2 additions and 2 deletions
|
|
@ -141,8 +141,8 @@ def rebuild_for_doctype(doctype):
|
|||
"name": frappe.db.escape(doc.name),
|
||||
"content": frappe.db.escape(' ||| '.join(content or '')),
|
||||
"published": published,
|
||||
"title": frappe.db.escape(title or '')[:int(frappe.db.VARCHAR_LEN)],
|
||||
"route": frappe.db.escape(route or '')[:int(frappe.db.VARCHAR_LEN)]
|
||||
"title": frappe.db.escape((title or '')[:int(frappe.db.VARCHAR_LEN)]),
|
||||
"route": frappe.db.escape((route or '')[:int(frappe.db.VARCHAR_LEN)])
|
||||
})
|
||||
if all_contents:
|
||||
insert_values_for_multiple_docs(all_contents)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue