Commit 29343915 authored by Arnaud Fontaine's avatar Arnaud Fontaine

BusinessTemplate: Escape '_' in LIKE expression meaning '.' in regex (b241968f).

parent 210e06ac
...@@ -950,7 +950,8 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -950,7 +950,8 @@ class ObjectTemplateItem(BaseTemplateItem):
def recursiveUnindex(catalog, item_path, root_document_path): def recursiveUnindex(catalog, item_path, root_document_path):
# search the object + sub-objects # search the object + sub-objects
result = catalog(relative_url=(item_path, item_path + '/%')) result = catalog(relative_url=(item_path,
item_path.replace('_', r'\_') + '/%'))
for x in result: for x in result:
uid = x.uid uid = x.uid
path = x.path path = x.path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment