phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
440 core / field option minor always 2007-05-03 15:56 2007-05-03 15:56
icalvo Apache  
Linux  
normal  
new 5.6 (stable)  
open  
none  
none  
trimlen does not apply to <option> values
'trimlen' option does not apply to the filter <select> values when the key is another (lookup tables or value2).
Set a lookup table which description column has long field values. Your grid will go mad no matter how you set the 'trimlen'.
Line 2188, insert this code just before the call to htmlSelect:

if (intval($this->fdd[$k]['trimlen']) > 0) {
foreach ($vals as $key=>$value) {
if (strlen($value) > $this->fdd[$k]['trimlen']) {
$vals[$key] = ereg_replace("[\r\n\t ]+",' ',$value);
$vals[$key] = substr($value, 0, $this->fdd[$k]['trimlen'] - 3) . '...';
}
}
}

It is not tested!

There are no notes attached to this bug.