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:
parent
c19e850df3
commit
5651392ce7
modules/monitoring/application
|
@ -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'));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue