View Issue Details

IDProjectCategoryView StatusLast Update
0011011mantisbtcustom fieldspublic2011-04-05 14:23
Reporterwatergad Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc1 
Target Version1.2.5Fixed in Version1.2.5 
Summary0011011: Can't add UTF8 custom fields to the Manage columns enumeration
Description

Can't add a custom field to the "View Issues Columns", "Print Issues Columns", etc, when the custom field has russian title.
The custom field is listed fine in the "All Available Columns" area but error happens when I'm trying to add this field to any enumeration (Field "print_issues" contains invalid field "...field name...")

Tagspatch
Attached Files
fields.jpg (193,428 bytes)   
fields.jpg (193,428 bytes)   

Relationships

duplicate of 0010901 closeddhx We can't use & in custom field value and it's impossible search the first and last value from custom list 
has duplicate 0012698 closedatrol custom field name with capital special character - Manage Columns problem 
has duplicate 0012514 closedatrol Columns with accents cannot be selected in Manage columns page 
has duplicate 0012114 closeddhx custom field names containing special characters (umlauts) cannot be displayed at "View Issues" 
has duplicate 0012797 closeddhx Custom fields with a '.' or brackets cannot be shown in views 

Activities

ykrest

ykrest

2010-02-25 10:15

reporter   ~0024525

I have the same error.

watergad

watergad

2010-03-12 12:56

reporter   ~0024729

Tried to apply patch from the related issue, still the same error.
Attaching screens.

watergad

watergad

2010-04-29 13:30

reporter   ~0025351

Last edited: 2010-04-29 13:58

Ok, I've resolved it while upgrading to 1.3dev...

columns_api.php

You're using "utf8_strtolower" to support UTF, and this is good (especially for our cyrillic installation (: ), but there are two calls of "array_map" with just 'strtolower'.

So you can replace
array_map( 'strtolower'...
with
array_map( 'utf8_strtolower'...
and this will do the trick.

These are lines 354 and 390 (in the 1.3dev from 28apr).

smartmantis

smartmantis

2011-01-18 09:40

reporter   ~0027985

Last edited: 2011-01-18 09:41

patch is not working, that's a different issue as i see.

watergad solution is the key, that's working fine to me too, (just line numbers were different):
http://www.mantisbt.org/bugs/view.php?id=11011#c25351

dhx

dhx

2011-02-28 05:13

reporter   ~0028313

Thanks for the patch/solution watergad, I have finally got around to committing it. Sorry for the delay.

Related Changesets

MantisBT: master 3eff319e

2011-02-28 05:08

watergad

Committer: dhx


Details Diff
Fix 0011011: Can't add custom fields with UTF8 names

Custom fields with UTF8 names could not be created or managed without
errors being experienced. This was due to use of ASCII string functions
instead of UTF8 functions.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0011011
mod - core/columns_api.php Diff File

MantisBT: master-1.2.x 479e1c70

2011-02-28 05:08

watergad

Committer: dhx


Details Diff
Fix 0011011: Can't add custom fields with UTF8 names

Custom fields with UTF8 names could not be created or managed without
errors being experienced. This was due to use of ASCII string functions
instead of UTF8 functions.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0011011
mod - core/columns_api.php Diff File