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
882fd9a7
Commit
882fd9a7
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch 'marcosgdf-bug-1757' into 3.5
parents
4e2c321e
38c9d39c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/product/popuprop.php
+14
-6
14 additions, 6 deletions
htdocs/product/popuprop.php
with
15 additions
and
6 deletions
ChangeLog
+
1
−
0
View file @
882fd9a7
...
...
@@ -6,6 +6,7 @@ English Dolibarr ChangeLog
Fix: Paypal link were broken dur to SSL v3 closed.
Fix: [ bug #1769 ] Error when installing to a PostgreSQL DB that contains numbers
Fix: [ bug #1752 ] Date filter of margins module, filters since 12H instead of 00H
Fix: [ bug #1757 ] Sorting breaks product/service statistics
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
Fix: Avoid missing class error for fetch_thirdparty method #1973
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/popuprop.php
+
14
−
6
View file @
882fd9a7
...
...
@@ -3,6 +3,7 @@
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -71,7 +72,9 @@ llxHeader('','',$helpurl);
$sql
=
"SELECT count(*) as c"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"product"
;
$sql
.
=
' WHERE entity IN ('
.
getEntity
(
'product'
,
1
)
.
')'
;
if
(
isset
(
$type
))
$sql
.
=
" AND fk_product_type = "
.
$type
;
if
(
$type
!==
''
)
{
$sql
.
=
" AND fk_product_type = "
.
$type
;
}
$result
=
$db
->
query
(
$sql
);
if
(
$result
)
...
...
@@ -82,11 +85,14 @@ if ($result)
$param
=
''
;
$title
=
$langs
->
trans
(
"ListProductServiceByPopularity"
);
if
(
isset
(
$type
))
{
if
(
$type
!==
''
)
{
$param
=
'&type='
.
$type
;
$title
=
$langs
->
trans
(
"ListProductByPopularity"
);
if
(
$type
==
1
)
$title
=
$langs
->
trans
(
"ListServiceByPopularity"
);
if
(
$type
==
1
)
{
$title
=
$langs
->
trans
(
"ListServiceByPopularity"
);
}
else
{
$title
=
$langs
->
trans
(
"ListProductByPopularity"
);
}
}
print_barre_liste
(
$title
,
$page
,
"popuprop.php"
,
$param
,
""
,
""
,
""
,
$num
);
...
...
@@ -106,7 +112,9 @@ $sql.= " FROM ".MAIN_DB_PREFIX."propaldet as pd";
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"product as p"
;
$sql
.
=
' WHERE p.entity IN ('
.
getEntity
(
'product'
,
1
)
.
')'
;
$sql
.
=
" AND p.rowid = pd.fk_product"
;
if
(
isset
(
$type
))
$sql
.
=
" AND fk_product_type = "
.
$type
;
if
(
$type
!==
''
)
{
$sql
.
=
" AND fk_product_type = "
.
$type
;
}
$sql
.
=
" GROUP BY (p.rowid)"
;
$sql
.
=
$db
->
order
(
$sortfield
,
$sortorder
);
$sql
.
=
$db
->
plimit
(
$limit
,
$offset
);
...
...
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