| phpMyEdit - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 440 | core / field option | minor | always | 2007-05-03 15:56 | 2007-05-03 15:56 |
|
|
|||||
| Reporter: | icalvo | Platform: | Apache | ||
| Assigned To: | OS: | Linux | |||
| Priority: | normal | Version: | |||
| Status: | new | Product Version: | 5.6 (stable) | ||
| Product Build: | Resolution: | open | |||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| 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. |