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()
|
||||
{
|
||||
$contactName = $this->getParam('contact');
|
||||
$contactName = $this->getParam('contact_name');
|
||||
|
||||
if (! $contactName) {
|
||||
throw new Zend_Controller_Action_Exception(
|
||||
$this->translate('The parameter `contact\' is required'),
|
||||
$this->translate('The parameter `contact_name\' is required'),
|
||||
404
|
||||
);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ foreach ($groupData as $groupName => $groupInfo): ?>
|
|||
<?= $this->qlink(
|
||||
$c->contact_alias,
|
||||
'monitoring/show/contact',
|
||||
array('contact' => $c->contact_name),
|
||||
array('contact_name' => $c->contact_name),
|
||||
array('title' => sprintf(
|
||||
$this->translate('Show detailed information about %s'),
|
||||
$c->contact_alias
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<strong><?= $this->qlink(
|
||||
$contact->contact_name,
|
||||
'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
|
||||
|
|
|
@ -63,7 +63,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||
$this->qlink(
|
||||
$notification->notification_contact,
|
||||
'monitoring/show/contact',
|
||||
array('contact' => $notification->notification_contact)
|
||||
array('contact_name' => $notification->notification_contact)
|
||||
)
|
||||
) ?>
|
||||
</small>
|
||||
|
|
|
@ -7,7 +7,7 @@ if (! empty($object->contacts)) {
|
|||
$list[] = $this->qlink(
|
||||
$contact->contact_alias,
|
||||
'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))
|
||||
);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ function contactsLink($match, $view) {
|
|||
$links[] = $view->qlink(
|
||||
$contact,
|
||||
'monitoring/show/contact',
|
||||
array('contact' => $contact),
|
||||
array('contact_name' => $contact),
|
||||
array('title' => sprintf($view->translate('Show detailed information about %s'), $contact))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue