Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
2b3a4616
Commit
2b3a4616
authored
Nov 04, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! listbox: sorting by CAST type (float)
parent
47c142b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_viewSortOnDialog/sort_type.xml
...tal_skins/erp5_core/Folder_viewSortOnDialog/sort_type.xml
+1
-1
product/ERP5Form/Extensions/Folder_viewSearchDialog.py
product/ERP5Form/Extensions/Folder_viewSearchDialog.py
+0
-3
product/ERP5Form/tests/testSelectionTool.py
product/ERP5Form/tests/testSelectionTool.py
+3
-3
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_viewSortOnDialog/sort_type.xml
View file @
2b3a4616
...
...
@@ -235,7 +235,7 @@
<list>
<tuple>
<string>
Default
</string>
<string>
default
</string>
<string></string>
</tuple>
<tuple>
<string>
Numerical
</string>
...
...
product/ERP5Form/Extensions/Folder_viewSearchDialog.py
View file @
2b3a4616
...
...
@@ -256,9 +256,6 @@ def getSearchDialog(self, REQUEST=None):
column_list
=
ListBoxListRenderer
(
listbox
.
widget
,
listbox
,
request
).
getAllColumnList
()
search_list
=
ListBoxListRenderer
(
listbox
.
widget
,
listbox
,
request
).
getSearchColumnIdSet
()
added_column_set
=
set
()
for
column_id
,
column_title
in
column_list
:
...
...
product/ERP5Form/tests/testSelectionTool.py
View file @
2b3a4616
...
...
@@ -140,15 +140,15 @@ class TestSelectionTool(ERP5TypeTestCase):
def
testSortOrder
(
self
):
self
.
portal_selections
.
setSelectionSortOrder
(
'test_selection'
,
[(
'title'
,
'ascending'
)])
self
.
assertEqual
([(
'title'
,
'ascending'
)],
self
.
assert
Sequence
Equal
([(
'title'
,
'ascending'
)],
self
.
portal_selections
.
getSelectionSortOrder
(
'test_selection'
))
self
.
portal_selections
.
setSelectionQuickSortOrder
(
'test_selection'
,
'title'
)
self
.
assertEqual
([(
'title'
,
'descending'
)],
self
.
assert
Sequence
Equal
([(
'title'
,
'descending'
)],
self
.
portal_selections
.
getSelectionSortOrder
(
'test_selection'
))
self
.
portal_selections
.
setSelectionQuickSortOrder
(
'test_selection'
,
'date'
)
self
.
assertEqual
([(
'date'
,
'ascending'
)],
self
.
assert
Sequence
Equal
([(
'date'
,
'ascending'
)],
self
.
portal_selections
.
getSelectionSortOrder
(
'test_selection'
))
def
testColumns
(
self
):
...
...
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