File: /generator/sfPropelAdmin/default/template/templates/_filters.php
The code:
14 <div class="form-row">
15 <label for="<?php echo $column->getName() ?>">[?php echo __('<?php echo str_replace("'", "\\'", $this->getParameterValue('list.fields.'.$column->getName().'.name')) ?>:') ?]</label>
16 <div class="content">
17 [?php echo <?php echo $this->getColumnFilterTag($column) ?> ?]
18 <?php if ($this->getParameterValue('list.fields.'.$column->getName().'.filter_is_empty')): ?>
19 <div>[?php echo checkbox_tag('filters[<?php echo $column->getName() ?>_is_empty]', 1, isset($filters['<?php echo $column->getName() ?>_is_empty']) ? $filters['<?php echo $column->getName() ?>_is_empty'] : null) ?] <label for="filters[<?php echo $column->getName() ?>_is_empty]">[?php echo __('is empty') ?]</label></div>
20 <?php endif; ?>
21 </div>
22 </div>
generates wrong value for label "for" attribute.
Generated code:
<div class="form-row">
<label for="id"><?php echo __('Id:') ?></label>
<div class="content">
<?php echo input_tag('filters[id]', isset($filters['id']) ? $filters['id'] : null, array (
'size' => 7,
)) ?>
</div>
</div>
And finally generated HTML:
<div class="form-row">
<label for="id">Id:</label>
<div class="content">
<input type="text" name="filters[id]" id="filters_id" value="" size="15" /></div>
</div>
As you see <label for="id">, but must be <label for="filters_id">