Commit 11a81a4c authored by webchick's avatar webchick

Issue #2409623 by hexabinaer, pjonckiere, tstoeckler: Amend misleading Views UI labels/descriptions

parent 3b2f71b5
......@@ -173,7 +173,7 @@ public function optionsSummary(&$categories, &$options) {
$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 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$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>',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment