monitoring/show/contact: Require `contact_name' instead of `contact'

refs #8613
This commit is contained in:
Johannes Meyer 2015-04-10 09:39:39 +02:00
parent 3d09615851
commit 3c47ba11eb
6 changed files with 7 additions and 7 deletions

View File

@ -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
);
}

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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))
);
}

View File

@ -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))
);
}