Commit ad98bfdc authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2578 Allow update action in software lists

parent 73217472
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment