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
agallavardin
fusiondirectory-plugins
Commits
ad98bfdc
Commit
ad98bfdc
authored
Sep 10, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Sep 10, 2013
Browse files
Fixes:
#2578
Allow update action in software lists
parent
73217472
Changes
1
Hide whitespace changes
Inline
Side-by-side
opsi/admin/opsi/class_opsiSoftwareList.inc
View file @
ad98bfdc
...
...
@@ -77,7 +77,7 @@ class opsiSoftwareList extends simplePlugin
new
SelectAttribute
(
''
,
''
,
'fdOpsiLocalbootProduct_action'
,
TRUE
,
array
(
'setup'
,
'always'
,
'once'
,
'custom'
,
'userlogin'
)
array
(
'setup'
,
'always'
,
'once'
,
'custom'
,
'userlogin'
,
'update'
)
)
),
'|'
,
''
,
_
(
'Localboot products'
)
...
...
@@ -126,7 +126,7 @@ class opsiSoftwareList extends simplePlugin
);
return
FALSE
;
}
$localboots
=
$s_daemon
->
append_call
(
'OPSI.get_localboots'
,
array
(
$this
->
macAddress
),
array
(
'args'
=>
array
(
array
(
'id'
,
'name'
,
'setupScript'
,
'alwaysScript'
,
'onceScript'
,
'customScript'
,
'userLoginScript'
))));
$localboots
=
$s_daemon
->
append_call
(
'OPSI.get_localboots'
,
array
(
$this
->
macAddress
),
array
(
'args'
=>
array
(
array
(
'id'
,
'name'
,
'setupScript'
,
'alwaysScript'
,
'onceScript'
,
'customScript'
,
'userLoginScript'
,
'updateScript'
))));
if
(
$s_daemon
->
is_error
())
{
msg_dialog
::
display
(
_
(
'Could contact OPSI server'
),
...
...
@@ -148,7 +148,7 @@ class opsiSoftwareList extends simplePlugin
$localboot
=
$this
->
attributesAccess
[
'fdOpsiLocalbootProduct'
]
->
attribute
->
attributes
[
0
]
->
getValue
();
$actions
=
array
();
foreach
(
array
(
'setup'
,
'always'
,
'once'
,
'custom'
,
'userLogin'
)
as
$action
)
{
foreach
(
array
(
'setup'
,
'always'
,
'once'
,
'custom'
,
'userLogin'
,
'update'
)
as
$action
)
{
if
(
!
empty
(
$this
->
products
[
$this
->
fdOpsiServerDN
][
'localboots'
][
$localboot
][
$action
.
'Script'
]))
{
$actions
[]
=
strtolower
(
$action
);
}
...
...
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