Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/SUP-51992.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add `SearchableText` to reindex object in content class and subscriber
[jchandelle]
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/CODT_UniqueLicence.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/Division.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/EnvironmentLicence.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/ExplosivesPossession.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/GenericLicence.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/Inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ def updateTitle(self):
idxs=(
"Title",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/Ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ def updateTitle(self):
idxs=(
"Title",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/UniqueLicence.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
1 change: 1 addition & 0 deletions src/Products/urban/content/licence/UrbanCertificateBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ def updateTitle(self):
"Title",
"applicantInfosIndex",
"sortable_title",
"SearchableText",
)
)

Expand Down
4 changes: 2 additions & 2 deletions src/Products/urban/events/inquiryEvents.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def afterDelete(ob, event):
if not inquiry.portal_type == "Inquiry":
continue
inquiry.setTitle(inquiry.generateInquiryTitle())
inquiry.reindexObject(idxs=("title",))
inquiry.reindexObject(idxs=("title", "SearchableText"))


def setGeneratedTitle(ob, event):
Expand All @@ -52,7 +52,7 @@ def setGeneratedTitle(ob, event):
if IGenericLicence.providedBy(ob):
return
ob.setTitle(ob.generateInquiryTitle())
ob.reindexObject(idxs=("title",))
ob.reindexObject(idxs=("title", "SearchableText"))


def setDefaultValuesEvent(inquiry, event):
Expand Down
3 changes: 2 additions & 1 deletion src/Products/urban/events/licenceEvents.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def postCreationActions(licence, event):
def updateLicenceTitle(licence, event):
if hasattr(licence, "updateTitle"):
licence.updateTitle()
licence.reindexObject(idxs=["Title", "sortable_title"])
licence.reindexObject(idxs=["Title", "sortable_title", "SearchableText"])


def updateTaskIndexes(task_container, event):
Expand Down Expand Up @@ -118,6 +118,7 @@ def _updateBoundLicencesIndexes(licence, events, indexes=[]):
"StreetNumber",
"StreetsUID",
"parcelInfosIndex",
"SearchableText",
]

annotations = IAnnotations(licence)
Expand Down