The field titles for the "is between" choice for the filter operator, "min", "and max", are missing in the view when rendered. Is this a template problem?

It would be far better to allow custom titles for this especially for including units, otherwise the user hasn't a clue what to put in there.

CommentFileSizeAuthor
#1 screenshot18.png9.74 KBdawehner

Comments

dawehner’s picture

StatusFileSize
new9.74 KB

here is a screen what i means.

Its a exposed filter of node:post date and set to "is between"

dawehner’s picture

here is the code, it seams they shouldn't be printed, anyone know why?

<?php
      $form['value']['min'] = array(
        '#type' => 'textfield',
        '#title' => empty($form_state['exposed']) ? t('Min') : '',
        '#size' => 30,
        '#default_value' => $this->value['min'],
      );
      $form['value']['max'] = array(
        '#type' => 'textfield',
        '#title' => empty($form_state['exposed']) ? t('And max') : t('And'),
        '#size' => 30,
        '#default_value' => $this->value['max'],
      );
?>
merlinofchaos’s picture

I probably did that due to the difficulty in figuring out how the titles should actually look with just a single label.

dawehner’s picture

ok this makes sense, but displaying nothing is worse then displaying just like the default way. "min" "and max"

esmerel’s picture

Status: Active » Postponed
merlinofchaos’s picture

Assigned: Unassigned » dawehner
Status: Postponed » Active

You should fix this, dereine. :)

dawehner’s picture

It's a bit problematic because this logic is currently not part of the filter handler, but by the theme.inc preprocess function.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)