Issue #2409623 by hexabinaer, pjonckiere, tstoeckler: Amend misleading Views UI labels/descriptions
parent
3b2f71b529
commit
11a81a4c8b
|
@ -173,7 +173,7 @@ class Block extends DisplayPluginBase {
|
|||
$options['block_hide_empty'] = array(
|
||||
'category' => 'other',
|
||||
'title' => $this->t('Hide block if the view output is empty'),
|
||||
'value' => $this->getOption('block_hide_empty') ? $this->t('Hide') : $this->t('Show'),
|
||||
'value' => $this->getOption('block_hide_empty') ? $this->t('Yes') : $this->t('No'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ class Sql extends QueryPluginBase {
|
|||
|
||||
$form['disable_sql_rewrite'] = array(
|
||||
'#title' => $this->t('Disable SQL rewriting'),
|
||||
'#description' => $this->t('Disabling SQL rewriting will disable node_access checks as well as other modules that implement hook_query_alter().'),
|
||||
'#description' => $this->t('Disabling SQL rewriting will omit all query tags, i. e. disable node access checks as well as override hook_query_alter() implementations in other modules.'),
|
||||
'#type' => 'checkbox',
|
||||
'#default_value' => !empty($this->options['disable_sql_rewrite']),
|
||||
'#suffix' => '<div class="messages messages--warning sql-rewrite-warning js-hide">' . $this->t('WARNING: Disabling SQL rewriting means that node access security is disabled. This may allow users to see data they should not be able to see if your view is misconfigured. Use this option only if you understand and accept this security risk.') . '</div>',
|
||||
|
|
Loading…
Reference in New Issue