Use UrlParams::getRequired() in RoleController::editAction()
This commit is contained in:
parent
6375d1d427
commit
853d4fd534
|
@ -69,13 +69,7 @@ class RoleController extends AuthBackendController
|
||||||
public function editAction()
|
public function editAction()
|
||||||
{
|
{
|
||||||
$this->assertPermission('config/authentication/roles/edit');
|
$this->assertPermission('config/authentication/roles/edit');
|
||||||
$name = $this->_request->getParam('role');
|
$name = $this->params->getRequired('role');
|
||||||
if (empty($name)) {
|
|
||||||
throw new Zend_Controller_Action_Exception(
|
|
||||||
sprintf($this->translate('Required parameter \'%s\' missing'), 'role'),
|
|
||||||
400
|
|
||||||
);
|
|
||||||
}
|
|
||||||
$role = new RoleForm();
|
$role = new RoleForm();
|
||||||
$role->setTitle(sprintf($this->translate('Update Role %s'), $name));
|
$role->setTitle(sprintf($this->translate('Update Role %s'), $name));
|
||||||
$role->setSubmitLabel($this->translate('Update Role'));
|
$role->setSubmitLabel($this->translate('Update Role'));
|
||||||
|
|
Loading…
Reference in New Issue