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
936f9122
Commit
936f9122
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix filter on category
parent
26e3fcc6
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/class/html.formother.class.php
+5
-4
5 additions, 4 deletions
htdocs/core/class/html.formother.class.php
with
5 additions
and
4 deletions
htdocs/core/class/html.formother.class.php
+
5
−
4
View file @
936f9122
...
...
@@ -303,13 +303,14 @@ class FormOther
* Return select list for categories (to use in form search selectors)
*
* @param int $type Type of categories (0=product, 1=suppliers, 2=customers, 3=members)
* @param integer $selected Preselected value
* @param string $htmlname Name of combo list
* @param
integer $selected Preselected value
* @param
string $htmlname Name of combo list
* @param int $nocateg Show also an entry "Not categorized"
* @param int $showempty Add also an empty line
* @return string Html combo list code
* @see select_all_categories
*/
function
select_categories
(
$type
,
$selected
=
0
,
$htmlname
=
'search_categ'
,
$nocateg
=
0
)
function
select_categories
(
$type
,
$selected
=
0
,
$htmlname
=
'search_categ'
,
$nocateg
=
0
,
$showempty
=
1
)
{
global
$conf
,
$langs
;
require_once
DOL_DOCUMENT_ROOT
.
'/categories/class/categorie.class.php'
;
...
...
@@ -331,7 +332,7 @@ class FormOther
// Print a select with each of them
$moreforfilter
.
=
'<select class="flat minwidth100" id="select_categ_'
.
$htmlname
.
'" name="'
.
$htmlname
.
'"'
.
$nodatarole
.
'>'
;
$moreforfilter
.
=
'<option value=""> </option>'
;
// Should use -1 to say nothing
if
(
$showempty
)
$moreforfilter
.
=
'<option value="
0
"> </option>'
;
// Should use -1 to say nothing
if
(
is_array
(
$tab_categs
))
{
...
...
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