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
775a73f6
Commit
775a73f6
authored
Jun 11, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Jun 11, 2014
Browse files
Fixes
#3159
OPSI netboot ids must be shown
parent
df7a7f5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
opsi/admin/opsi/class_opsiProductProperties.inc
View file @
775a73f6
...
...
@@ -20,13 +20,10 @@
class
SubmittingOPSIProductAttribute
extends
SelectAttribute
{
private
$func
;
function
__construct
(
$label
,
$description
,
$ldapName
,
$required
=
FALSE
,
$func
,
$acl
=
""
)
{
$this
->
func
=
$func
;
parent
::
__construct
(
$label
,
$description
,
$ldapName
,
$required
,
array
(),
""
,
NULL
,
$acl
);
$this
->
setSubmitForm
(
TRUE
);
$this
->
setSubmitForm
(
$func
);
}
function
check
()
...
...
@@ -37,16 +34,6 @@ class SubmittingOPSIProductAttribute extends SelectAttribute
{
return
$value
;
}
function
setValue
(
$value
)
{
$v
=
$this
->
getValue
();
parent
::
setValue
(
$value
);
if
(
is_object
(
$this
->
plugin
)
&&
(
$v
!=
$this
->
getValue
()))
{
$func
=
$this
->
func
;
$this
->
plugin
->
$func
();
}
}
}
class
ProductPropertyAttribute
extends
CompositeAttribute
...
...
opsi/admin/opsi/class_opsiProfile.inc
View file @
775a73f6
...
...
@@ -200,7 +200,7 @@ class opsiProfile extends simplePlugin
$choices_labels
=
array
();
foreach
(
$this
->
products
[
$this
->
fdOpsiServerDN
][
'netboots'
]
as
$netboot
)
{
$choices_values
[]
=
$netboot
[
'id'
];
$choices_labels
[]
=
$netboot
[
'name'
];
$choices_labels
[]
=
sprintf
(
_
(
'%s (%s)'
),
$netboot
[
'id'
],
$netboot
[
'name'
]
)
;
}
$this
->
attributesAccess
[
'fdOpsiNetbootProduct'
]
->
setChoices
(
$choices_values
,
$choices_labels
);
$this
->
attributesAccess
[
'fdOpsiSoftwareList'
]
->
attribute
->
setChoices
(
...
...
agallavardin
@agallavardin
mentioned in issue #973
·
Sep 02, 2017
mentioned in issue #973
mentioned in issue #973
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