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
b0977e3e
Commit
b0977e3e
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #5122 from fmarcet/3.8
FIX: Not filtering correctly when come from dashboard
parents
59a30cd2
d599261d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fourn/facture/list.php
+10
-0
10 additions, 0 deletions
htdocs/fourn/facture/list.php
with
10 additions
and
0 deletions
htdocs/fourn/facture/list.php
+
10
−
0
View file @
b0977e3e
...
...
@@ -81,6 +81,7 @@ $year = GETPOST("year","int");
$day_lim
=
GETPOST
(
'day_lim'
,
'int'
);
$month_lim
=
GETPOST
(
'month_lim'
,
'int'
);
$year_lim
=
GETPOST
(
'year_lim'
,
'int'
);
$filter
=
GETPOST
(
"filtre"
);
if
(
GETPOST
(
"button_removefilter_x"
)
||
GETPOST
(
"button_removefilter"
))
// Both test must be present to be compatible with all browsers
{
...
...
@@ -210,6 +211,15 @@ if ($search_status != '')
{
$sql
.
=
" AND fac.fk_statut = "
.
$search_status
;
}
if
(
$filter
&&
$filter
!=
-
1
)
{
$aFilter
=
explode
(
','
,
$filter
);
foreach
(
$aFilter
as
$fil
)
{
$filt
=
explode
(
':'
,
$fil
);
$sql
.
=
' AND '
.
trim
(
$filt
[
0
])
.
' = '
.
trim
(
$filt
[
1
]);
}
}
$nbtotalofrecords
=
0
;
if
(
empty
(
$conf
->
global
->
MAIN_DISABLE_FULL_SCANLIST
))
...
...
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