Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
2e15dbf029f5
Commit
f799d82f
authored
Jul 06, 2016
by
Sylvain Thénault
Browse files
[ui] Handle case where there is no concept matching the constraint
This triggered a test failure.
parent
2a0a5a84e6af
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/dataobject.py
View file @
2e15dbf0
...
...
@@ -102,7 +102,8 @@ class ContainedSearchForRelatedEntitiesView(rwdg.SearchForRelatedEntitiesView):
if
lang
in
languages
:
break
else
:
assert
languages
,
'no preferred label'
if
not
languages
:
return
self
.
_cw
.
empty_rset
()
lang
=
languages
.
pop
()
# now build the query to prefetch/sort on the preferred label in the proper language
return
self
.
_cw
.
execute
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment