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
a54589c1
Commit
a54589c1
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix filter lost
parent
09355b0c
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/comm/prospect/list.php
+17
-10
17 additions, 10 deletions
htdocs/comm/prospect/list.php
with
17 additions
and
10 deletions
htdocs/comm/prospect/list.php
+
17
−
10
View file @
a54589c1
...
...
@@ -259,16 +259,17 @@ if ($socname)
$sortorder
=
"ASC"
;
}
// Extra fields
if
(
is_array
(
$extrafields
->
attribute_list
)
&&
count
(
$extrafields
->
attribute_list
))
foreach
(
$search_array_options
as
$key
=>
$val
)
{
foreach
(
$extrafields
->
attribute_list
as
$key
=>
$val
)
{
$crit
=
GETPOST
(
'search_options_'
.
$key
);
if
(
$val
&&
$crit
!=
''
)
{
$sql
.
=
natural_search
(
'ef.'
.
$key
,
$crit
);
}
}
$crit
=
$val
;
$tmpkey
=
preg_replace
(
'/search_options_/'
,
''
,
$key
);
$typ
=
$extrafields
->
attribute_type
[
$tmpkey
];
$mode
=
0
;
if
(
in_array
(
$typ
,
array
(
'int'
)))
$mode
=
1
;
// Search on a numeric
if
(
$val
&&
(
(
$crit
!=
''
&&
!
in_array
(
$typ
,
array
(
'select'
)))
||
!
empty
(
$crit
)))
{
$sql
.
=
natural_search
(
'ef.'
.
$tmpkey
,
$crit
,
$mode
);
}
}
// Add where from hooks
$parameters
=
array
();
...
...
@@ -317,9 +318,15 @@ if ($resql)
}
if
(
$search_level_from
!=
''
)
$param
.
=
'&search_level_from='
.
$search_level_from
;
if
(
$search_level_to
!=
''
)
$param
.
=
'&search_level_to='
.
$search_level_to
;
if
(
$search_categ
!=
''
)
$param
.
=
'&search_categ='
.
$search_categ
;
if
(
$search_categ
!=
''
)
$param
.
=
'&search_categ='
.
urlencode
(
$search_categ
)
;
if
(
$search_sale
>
0
)
$param
.
=
'&search_sale='
.
$search_sale
;
if
(
$search_status
!=
''
)
$param
.
=
'&search_status='
.
$search_status
;
foreach
(
$search_array_options
as
$key
=>
$val
)
{
$crit
=
$val
;
$tmpkey
=
preg_replace
(
'/search_options_/'
,
''
,
$key
);
$param
.
=
'&search_options_'
.
$tmpkey
.
'='
.
urlencode
(
$val
);
}
// $param and $urladd should have the same value
$urladd
=
$param
;
...
...
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