Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
484dc593
Commit
484dc593
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix regression in sorting
parent
43044bbb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/db/DoliDB.class.php
+2
-2
2 additions, 2 deletions
htdocs/core/db/DoliDB.class.php
with
2 additions
and
2 deletions
htdocs/core/db/DoliDB.class.php
+
2
−
2
View file @
484dc593
...
...
@@ -237,9 +237,9 @@ abstract class DoliDB implements Database
$return
.
=
preg_replace
(
'/[^0-9a-z_\.]/i'
,
''
,
$val
);
// Only ASC and DESC values are valid SQL
if
(
$sortorder
===
'ASC'
)
{
if
(
strtoupper
(
$sortorder
)
===
'ASC'
)
{
$return
.
=
' ASC'
;
}
elseif
(
$sortorder
===
'DESC'
)
{
}
elseif
(
strtoupper
(
$sortorder
)
===
'DESC'
)
{
$return
.
=
' DESC'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment