MantisBT: master-1.3.x 414d19dd

Author Committer Branch Timestamp Parent
cproensa vboctor master-1.3.x 2016-11-18 14:44 master-1.3.x b0a1ddbe
Affected Issues  0017367: Custom Field - On The Manage Columns - Mantis changed value to lower case
 0020248: Custom field named with capital letters like "Component" doesn't display on views
Changeset

Don't force lowercase for custom field column names

Custom field names are referenced by name in columns definitions.
There were some conversions in place to compare column names by
converting to lowercase.
However, the field name is stored in custom fields table without any
conversion. This causes:

  • The configured columns array can be inconsistent with the available
    columns names.
  • When the database uses case sensitive matching, the columns are not
    shown properly and are presented as not existant.

So given that custom field names are already stored with unrestricted
names, which include spaces and non-alphanumeric characters, forcing
them to lowercase while treating them is not a significant requirement
at the moment.

Fixes: 0017367, 0020248

mod - core/columns_api.php Diff File