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
298a6713
Commit
298a6713
authored
9 years ago
by
Paris Liakos
Browse files
Options
Downloads
Patches
Plain Diff
getListOfProductsOrServices() filters are broken
parent
88356e2e
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/webservices/server_productorservice.php
+3
-3
3 additions, 3 deletions
htdocs/webservices/server_productorservice.php
with
3 additions
and
3 deletions
htdocs/webservices/server_productorservice.php
+
3
−
3
View file @
298a6713
...
...
@@ -946,9 +946,9 @@ function getListOfProductsOrServices($authentication,$filterproduct)
$sql
.
=
" WHERE entity="
.
$conf
->
entity
;
foreach
(
$filterproduct
as
$key
=>
$val
)
{
if
(
$key
==
'type'
&&
$val
>=
0
)
$sql
.
=
" AND fk_product_type = "
.
$db
->
escape
(
$val
);
if
(
$key
==
'tosell'
)
$sql
.
=
" AND to
_
sell = "
.
$db
->
escape
(
$val
);
if
(
$key
==
'tobuy'
)
$sql
.
=
" AND to
_
buy = "
.
$db
->
escape
(
$val
);
if
(
$key
==
'type'
&&
$val
>=
0
)
$sql
.
=
" AND fk_product_type = "
.
$db
->
escape
(
$val
);
if
(
$key
==
'
status_
tosell'
)
$sql
.
=
" AND tosell = "
.
$db
->
escape
(
$val
);
if
(
$key
==
'
status_
tobuy'
)
$sql
.
=
" AND tobuy = "
.
$db
->
escape
(
$val
);
}
$resql
=
$db
->
query
(
$sql
);
if
(
$resql
)
...
...
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