Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
addressbook
Commits
ca89f031d0ce
Commit
df6cce3d
authored
Jan 17, 2020
by
Noé Gaumont
🐙
Browse files
Fix TypeError on cw_fetch_order
Closes #68173395
parent
e2c534004795
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_addressbook/entities.py
View file @
ca89f031
...
...
@@ -17,7 +17,7 @@ class PhoneNumber(AnyEntity):
fetch_attrs
=
fetch_config
([
'number'
,
'type'
])[
0
]
@
classmethod
def
cw_fetch_order
(
cls
,
attr
,
var
):
def
cw_fetch_order
(
cls
,
select
,
attr
,
var
):
if
attr
==
'type'
:
return
'phonetype_sort_value(%s) DESC'
%
var
return
None
...
...
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