Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory-plugins
Commits
df7a7f5f
Commit
df7a7f5f
authored
Jun 10, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Jun 11, 2014
Browse files
Fixes
#3150
faiprofile edition was broken
parent
6e0d9150
Changes
1
Hide whitespace changes
Inline
Side-by-side
fai/admin/fai/class_faiProfile.inc
View file @
df7a7f5f
...
...
@@ -410,11 +410,11 @@ class faiProfile extends faiPluginClass
$message
[]
=
_
(
"No class specified for this profile!"
);
}
if
(
$this
->
cn
==
""
){
$message
[]
=
msgPool
::
required
(
_
(
"Name"
));
if
(
$this
->
cn
==
""
)
{
$message
[]
=
msgPool
::
required
(
_
(
"Name"
));
}
elseif
(
empty
(
$message
))
{
/* Profile can't use a name used by a class */
$res
=
FAI
::
get_all_objects_for_given_base
(
$this
->
parent
->
parent
->
fai_release
,
"(cn="
.
$this
->
cn
.
")"
);
$res
=
FAI
::
get_all_objects_for_given_base
(
$this
->
parent
->
parent
->
fai_release
,
"(
&(!(objectClass=faiProfile))(
cn="
.
$this
->
cn
.
")
)
"
);
if
(
!
empty
(
$res
))
{
$message
[]
=
_
(
"You can't use the same name for a class and a profile!"
);
}
...
...
Côme Chilliet
@cchilliet
mentioned in issue #969
·
Sep 02, 2017
mentioned in issue #969
mentioned in issue #969
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment