View Issue Details

IDProjectCategoryView StatusLast Update
0005131mantisbtfilterspublic2005-04-18 10:30
Reporterguideweb Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformP3 800MhzOSRedhat Linux 9 w/ Apache2OS Version9
Product Version0.19.2 
Fixed in Version1.0.0a1 
Summary0005131: Trim filter values
Description

You realy should trim value displayed in filter.

Additional Information

In my case the custom field contian a page url, and it sometime very long

TagsNo tags attached.
Attached Files
filter-should-trim-values.PNG (37,683 bytes)   
filter-should-trim-values.PNG (37,683 bytes)   

Relationships

has duplicate 0004250 closedthraxisp Apply Filter button off of the right edge of the screen... 
has duplicate 0005072 closedthraxisp edit filter screen too wide 
has duplicate 0004630 closedthraxisp filter adjustment issue with long entries 

Activities

thraxisp

thraxisp

2005-01-15 11:15

reporter   ~0009032

I'd suggest that for display purposes, the length of the string should be limited to a programmable value (say, 25 characters). If a string is longer than that, it can be split into two with an elipsis placed in between. Thus, 'a really long custom filter value that I tried' would display as 'a really long cust...tried'.

Comments?

guideweb

guideweb

2005-01-15 11:45

reporter   ~0009033

Add trim length into config_default

If possible dont cut in middle of a word

thraxisp

thraxisp

2005-01-17 09:44

reporter   ~0009046

I've coded this and am looking for feedback. Here are some examples:

"short topic" renders as "short topic"

"topic" renders as "topic"

"doc-0000000-twest.string-end.php" renders as "doc-0000000-twest.string...php"

"a really long and boring string that doesnt fit" renders as "a really long and boring...fit"

"http://ca.php.net/manual/en/control-structures.break.php" renders as "http://ca.php.net/manual...php"

"http://bugs.mantisbt.org/view.php?id=5131" renders as "http://bugs.mantisbt...id=5131"

magr

magr

2005-01-24 18:04

reporter   ~0009084

Works for me!

thraxisp

thraxisp

2005-01-28 22:15

reporter   ~0009130

fixed in CVS.