Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add check for compute in getUniquePropertyIndexValues #1316

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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 src/viur/core/bones/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,8 @@ def getUniquePropertyIndexValues(self, skel: 'viur.core.skeleton.SkeletonInstanc
:return: A list of strings representing the hashed values for the current bone value(s) in the skeleton.
If the bone has no value, an empty list is returned.
"""
if self.compute:
self.serialize_compute(skel, name)
val = skel[name]
if val is None:
return []
Expand Down
Loading