Verified Commit ee2e706d authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(systems) Fix argonaut server link in dashboard

Also made the error clearer if an non-existing service is linked to.

issue #5949
Showing with 4 additions and 1 deletion
+4 -1
......@@ -146,7 +146,7 @@ class dashboardSystems extends simplePlugin
foreach (['cn','ipHostNumber','argonautProtocol','argonautPort'] as $key) {
$argonaut_server[$key] = $attrs[$key][0];
}
$argonaut_server['link'] = objects::link(key($argonaut_servers), 'server', 'service_serviceArgonaut', $attrs);
$argonaut_server['link'] = objects::link(key($argonaut_servers), 'server', 'service_argonautServer', $attrs);
}
if (strpos($ui->get_permissions($config->current['BASE'], 'server/argonautClient', ''), 'r') === FALSE) {
......
......@@ -264,6 +264,9 @@ class servicesManagement extends management implements SimpleTab
function editEntry (array $action)
{
$s_entry = array_pop($action['targets']);
if (!isset($this->plugins[$s_entry])) {
throw new FusionDirectoryException('No service "'.$s_entry.'" in '.json_encode(array_keys($this->plugins)));
}
if ($this->plugins[$s_entry]->acl_is_readable('')) {
$this->backup = get_object_vars($this->plugins[$s_entry]);
$this->dialogObject = $this->plugins[$s_entry];
......
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