mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
MonitoringWizard: Prefer our form error implementation
This commit is contained in:
parent
d69ab427a6
commit
3b63868ed9
@ -63,7 +63,7 @@ class MonitoringWizard extends Wizard implements SetupWizard
|
|||||||
|| (($ldapResourceData = $this->getPageData('setup_ldap_resource')) !== null
|
|| (($ldapResourceData = $this->getPageData('setup_ldap_resource')) !== null
|
||||||
&& $ldapResourceData['name'] === $request->getPost('name'))
|
&& $ldapResourceData['name'] === $request->getPost('name'))
|
||||||
) {
|
) {
|
||||||
$page->addError(mt('monitoring', 'The given resource name is already in use.'));
|
$page->error(mt('monitoring', 'The given resource name is already in use.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user