Commit 15fc78b2 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(systems): A terminal can have only one server

Terminal had a SetAttribute for its Server while is single valued in the
 schema.
It’s now a SelectAttribute to match the schema.

issue #5728
Showing with 5 additions and 7 deletions
+5 -7
......@@ -70,12 +70,10 @@ class terminalStartup extends simplePlugin
'',
array(_('XDMCP'), _('LDM'), _('Shell'), _('Telnet'), _('Windows RDP'))
),
new SetAttribute(
new SelectAttribute(
_('Terminal server'), _('Terminal server'),
'gotoXdmcpServer', FALSE,
array()
)
new SelectAttribute(
_('Terminal server'), _('Terminal server'),
'gotoXdmcpServer', FALSE,
array()
)
)
),
......@@ -130,7 +128,7 @@ class terminalStartup extends simplePlugin
function updateServerList()
{
$servers = objects::ls('server', NULL, NULL, '(&(objectClass=goTerminalServer)(gotoSessionType='.strtoupper($this->gotoXMethod).'))');
$this->attributesAccess['gotoXdmcpServer']->attribute->setChoices($servers);
$this->attributesAccess['gotoXdmcpServer']->setChoices($servers);
}
}
......
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