Skip to content

Commit

Permalink
Ensure that all forms have a name
Browse files Browse the repository at this point in the history
refs #5525
  • Loading branch information
Johannes Meyer committed Aug 22, 2014
1 parent 2b879b3 commit 75a0c17
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 1 deletion.
Expand Up @@ -11,6 +11,14 @@
*/
class AutologinBackendForm extends BaseBackendForm
{
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_authentication_autologin');
}

public function isValidAuthenticationBackend()
{
return true;
Expand Down
2 changes: 2 additions & 0 deletions application/forms/Config/Authentication/DbBackendForm.php
Expand Up @@ -30,6 +30,8 @@ class DbBackendForm extends BaseBackendForm
*/
public function init()
{
$this->setName('form_config_authentication_db');

$dbResources = array_keys(
ResourceFactory::getResourceConfigs('db')->toArray()
);
Expand Down
2 changes: 2 additions & 0 deletions application/forms/Config/Authentication/LdapBackendForm.php
Expand Up @@ -30,6 +30,8 @@ class LdapBackendForm extends BaseBackendForm
*/
public function init()
{
$this->setName('form_config_authentication_ldap');

$ldapResources = array_keys(
ResourceFactory::getResourceConfigs('ldap')->toArray()
);
Expand Down
8 changes: 8 additions & 0 deletions application/forms/Dashboard/AddUrlForm.php
Expand Up @@ -13,6 +13,14 @@
*/
class AddUrlForm extends Form
{
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_dashboard_addurl');
}

/**
* @see Form::createElements()
*/
Expand Down
2 changes: 1 addition & 1 deletion application/forms/Preference/GeneralForm.php
Expand Up @@ -19,7 +19,7 @@ class GeneralForm extends Form
*/
public function init()
{
$this->setName('form_preference_set');
$this->setName('form_config_preferences');
}

/**
Expand Down
Expand Up @@ -251,6 +251,9 @@ protected function writeConfiguration($config, $file = null)
return true;
}

/**
* Display a form to adjust security relevant settings
*/
public function securityAction()
{
$this->view->tabs = $this->Module()->getConfigTabs()->activate('security');
Expand Down
8 changes: 8 additions & 0 deletions modules/monitoring/application/forms/Config/BackendForm.php
Expand Up @@ -12,6 +12,14 @@
*/
class BackendForm extends Form
{
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_backends');
}

/**
* @see Form::createElements()
*/
Expand Down
8 changes: 8 additions & 0 deletions modules/monitoring/application/forms/Config/InstanceForm.php
Expand Up @@ -14,6 +14,14 @@
*/
class InstanceForm extends Form
{
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_instances');
}

/**
* @see Form::createElements()
*/
Expand Down
8 changes: 8 additions & 0 deletions modules/monitoring/application/forms/Config/SecurityForm.php
Expand Up @@ -17,6 +17,14 @@ class SecurityForm extends Form
*/
protected $config;

/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_security');
}

/**
* @see Form::createElements()
*/
Expand Down

0 comments on commit 75a0c17

Please sign in to comment.