phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
469 core / general minor always 2007-10-13 00:32 2007-10-13 00:32
doug  
 
normal  
new  
open  
none  
none  
incorrect size argument for filter INPUT boxes
re: phpMyEdit.class.php,v 1.208

In the class file's "function filter_heading()" I don't think the size of INPUT filter / search boxes are properly calculated.

It almost looks as though $this->fdd[$k]['size'] is unavailable to the function.

Numeric smallint(5) fields are having the INPUT size argument set at 12.

The columns then display much wider than than expected. I have a lot of tables with consecutive fields of small length (5-6 characters), and the wide filter INPUT boxes mess up the display, especially if used in combination with 'select' => 'N'.

$size =
isset($this->fdd[$k]['size'])
? $this->fdd[$k]['size']
: ($maxlen < 30 ? min($maxlen, 8) : 12);

There are no notes attached to this bug.