Unverified Commit 4163d890 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(argonaut) Fix argonaut action scheduling from system management

Use generic SystemsAttribute instead of custom MacsAttribute

issue #6130
Showing with 4 additions and 12 deletions
+4 -12
...@@ -18,16 +18,6 @@ ...@@ -18,16 +18,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
class MacsAttribute extends GenericDialogAttribute
{
protected $dialogClass = 'SystemSelectDialog';
function __construct ($label, $description, $ldapName, $required = FALSE, $defaultValue = [], $display_attr = 'cn', $acl = '')
{
parent::__construct($label, $description, $ldapName, $required, $defaultValue, 'macAddress', $display_attr, $acl);
}
}
class argonautAction extends ManagementDialog class argonautAction extends ManagementDialog
{ {
protected $post_cancel = 'abort_event_dialog'; protected $post_cancel = 'abort_event_dialog';
...@@ -105,9 +95,11 @@ class argonautAction extends ManagementDialog ...@@ -105,9 +95,11 @@ class argonautAction extends ManagementDialog
'targets' => [ 'targets' => [
'name' => _('Targets'), 'name' => _('Targets'),
'attrs' => [ 'attrs' => [
new MacsAttribute( new SystemsAttribute(
'', _('Targets for this task'), '', _('Targets for this task'),
'targets', TRUE 'targets', TRUE,
['terminal', 'workstation', 'server'], [],
'macAddress'
) )
] ]
] ]
......
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