| Index
» Projects
» phpMyEdit
» Bug list
» Bug #440 |
 |
|
Viewing Bug Advanced Details |
[ Jump to Bugnotes ]
[ Bug History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000440 |
core / field option |
minor |
always |
2007-05-03 15:56 |
2007-05-03 15:56 |
|
|
|
Reporter |
icalvo |
View Status |
public |
|
|
Assigned To |
|
|
Priority |
normal |
Resolution |
open |
Platform |
Apache |
|
Status |
new |
Duplicate ID |
|
OS |
Linux |
|
Projection |
none |
|
Version |
|
|
ETA |
none |
|
Product Version |
5.6 (stable) |
|
|
Product Build |
|
|
|
Votes |
1 |
|
|
|
Summary |
trimlen does not apply to <option> values |
|
Description |
'trimlen' option does not apply to the filter <select> values when the key is another (lookup tables or value2). |
|
Steps To Reproduce |
Set a lookup table which description column has long field values. Your grid will go mad no matter how you set the 'trimlen'. |
|
Additional Information / Solution |
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! |
|
Attached Files |
|
|
|
|
There are no notes attached to this bug. |
|
Bug History |
|
Date Modified |
Username |
Field |
Change |
|
2007-05-03 15:56 |
icalvo |
New Bug |
|
|
|