monitoring/config: Rename URL paramter backend to backend-name

Else the parameter conflicts w/ the module-wide paramter backend for choosing the data source.
This commit is contained in:
Eric Lippmann 2015-09-03 17:03:33 +02:00
parent c19e850df3
commit 5651392ce7
2 changed files with 4 additions and 4 deletions
modules/monitoring/application
controllers
views/scripts/config

View File

@ -34,7 +34,7 @@ class ConfigController extends Controller
*/
public function editbackendAction()
{
$backendName = $this->params->getRequired('backend');
$backendName = $this->params->getRequired('backend-name');
$form = new BackendConfigForm();
$form->setRedirectUrl('monitoring/config');
@ -120,7 +120,7 @@ class ConfigController extends Controller
*/
public function removebackendAction()
{
$backendName = $this->params->getRequired('backend');
$backendName = $this->params->getRequired('backend-name');
$backendForm = new BackendConfigForm();
$backendForm->setIniConfig($this->Config('backends'));

View File

@ -21,7 +21,7 @@
<?= $this->qlink(
$backendName,
'/monitoring/config/editbackend',
array('backend' => $backendName),
array('backend-name' => $backendName),
array(
'icon' => 'edit',
'title' => sprintf($this->translate('Edit monitoring backend %s'), $backendName)
@ -36,7 +36,7 @@
<?= $this->qlink(
'',
'/monitoring/config/removebackend',
array('backend' => $backendName),
array('backend-name' => $backendName),
array(
'icon' => 'trash',
'title' => sprintf($this->translate('Remove monitoring backend %s'), $backendName)