monitoring/show/contact: Require `contact_name' instead of `contact'
refs #8613
This commit is contained in:
parent
3d09615851
commit
3c47ba11eb
|
@ -112,11 +112,11 @@ class Monitoring_ShowController extends Controller
|
||||||
|
|
||||||
public function contactAction()
|
public function contactAction()
|
||||||
{
|
{
|
||||||
$contactName = $this->getParam('contact');
|
$contactName = $this->getParam('contact_name');
|
||||||
|
|
||||||
if (! $contactName) {
|
if (! $contactName) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
throw new Zend_Controller_Action_Exception(
|
||||||
$this->translate('The parameter `contact\' is required'),
|
$this->translate('The parameter `contact_name\' is required'),
|
||||||
404
|
404
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ foreach ($groupData as $groupName => $groupInfo): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$c->contact_alias,
|
$c->contact_alias,
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $c->contact_name),
|
array('contact_name' => $c->contact_name),
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translate('Show detailed information about %s'),
|
$this->translate('Show detailed information about %s'),
|
||||||
$c->contact_alias
|
$c->contact_alias
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<strong><?= $this->qlink(
|
<strong><?= $this->qlink(
|
||||||
$contact->contact_name,
|
$contact->contact_name,
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $contact->contact_name),
|
array('contact_name' => $contact->contact_name),
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translate('Show detailed information about %s'),
|
$this->translate('Show detailed information about %s'),
|
||||||
$contact->contact_alias
|
$contact->contact_alias
|
||||||
|
|
|
@ -63,7 +63,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
||||||
$this->qlink(
|
$this->qlink(
|
||||||
$notification->notification_contact,
|
$notification->notification_contact,
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $notification->notification_contact)
|
array('contact_name' => $notification->notification_contact)
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
</small>
|
</small>
|
||||||
|
|
|
@ -7,7 +7,7 @@ if (! empty($object->contacts)) {
|
||||||
$list[] = $this->qlink(
|
$list[] = $this->qlink(
|
||||||
$contact->contact_alias,
|
$contact->contact_alias,
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $contact->contact_name),
|
array('contact_name' => $contact->contact_name),
|
||||||
array('title' => sprintf($this->translate('Show detailed information about %s'), $contact->contact_alias))
|
array('title' => sprintf($this->translate('Show detailed information about %s'), $contact->contact_alias))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ function contactsLink($match, $view) {
|
||||||
$links[] = $view->qlink(
|
$links[] = $view->qlink(
|
||||||
$contact,
|
$contact,
|
||||||
'monitoring/show/contact',
|
'monitoring/show/contact',
|
||||||
array('contact' => $contact),
|
array('contact_name' => $contact),
|
||||||
array('title' => sprintf($view->translate('Show detailed information about %s'), $contact))
|
array('title' => sprintf($view->translate('Show detailed information about %s'), $contact))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue