Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
bc129629
Commit
bc129629
authored
Mar 17, 2016
by
Côme Chilliet
Browse files
Fixes
#4529
Fixed fatal error in departement
parent
92c368ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/admin/departments/class_department.inc
View file @
bc129629
...
...
@@ -147,11 +147,13 @@ class department extends simplePlugin
$categoriesList
=
$this
->
config
->
get_cfg_value
(
'DepartmentCategories'
,
array
());
/* Insert current value to possibilities */
$businessCategory
=
$this
->
attributesAccess
[
'businessCategory'
]
->
getValue
();
if
((
$businessCategory
!=
""
)
&&
!
in_array
(
$businessCategory
,
$categoriesList
))
{
$categoriesList
[]
=
$businessCategory
;
if
(
isset
(
$this
->
attributesAccess
[
'businessCategory'
]))
{
$businessCategory
=
$this
->
attributesAccess
[
'businessCategory'
]
->
getValue
();
if
((
$businessCategory
!=
""
)
&&
!
in_array
(
$businessCategory
,
$categoriesList
))
{
$categoriesList
[]
=
$businessCategory
;
}
$this
->
attributesAccess
[
'businessCategory'
]
->
setChoices
(
$categoriesList
);
}
$this
->
attributesAccess
[
'businessCategory'
]
->
setChoices
(
$categoriesList
);
$this
->
attributesAccess
[
$this
->
getNamingAttr
()]
->
setUnique
(
TRUE
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment