Skip to content

Commit

Permalink
Make it optional to define protected custom variables
Browse files Browse the repository at this point in the history
fixes #7590
  • Loading branch information
Johannes Meyer committed Nov 7, 2014
1 parent bb96316 commit f1b6a82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -55,7 +55,8 @@ public function createElements(array $formData)
'text',
'protected_customvars',
array(
'required' => true,
'allowEmpty' => true,
'value' => '*pw*,*pass*,community',
'label' => mt('monitoring', 'Protected Custom Variables'),
'description' => mt('monitoring',
'Comma separated case insensitive list of protected custom variables.'
Expand Down
Expand Up @@ -56,7 +56,9 @@ public function getSummary()
. '<tbody>'
. '<tr>'
. '<td><strong>' . mt('monitoring', 'Protected Custom Variables') . '</strong></td>'
. '<td>' . $this->data['securityConfig']['protected_customvars'] . '</td>'
. '<td>' . ($this->data['securityConfig']['protected_customvars'] ? (
$this->data['securityConfig']['protected_customvars']
) : mt('monitoring', 'None', 'monitoring.protected_customvars')) . '</td>'
. '</tr>'
. '</tbody>'
. '</table>';
Expand Down

0 comments on commit f1b6a82

Please sign in to comment.