Skip to content

Custom Fields of type DATE are not displayed #10

@fmancardi

Description

@fmancardi

I've give a look to the code and found this:
suppose you have custom field with ID 32 defined as DATE, when Mantis draw the inputs standard logic creates 3 inputs named as follow:
custom_field_32_year
custom_field_32_month
custom_field_32_day

The logic used to hide custom fields works ok, but the logic to show failed because on configuration is saved 'custom_field_32'.

My workaround is detect CF type, and if is of DATE type, add ALWAYS _year, to string that will be saved on CONFIG.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions