Is enum order important?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ultrablue
Posts: 2
Joined: 06 Mar 2012, 00:27

Is enum order important?

Post by ultrablue »

Hello:

I hope I'm asking this in a way that makes sense.

My teams use Mantis in a variety of ways and often request per-project customizations. I've been investigating that, and I've got a good understanding on how customizing them works.

One question did arise, though:
Do the enumeration values have meaning in themselves? For example, is their order ever important? In other words, does their ordinality matter? Or are enums' values used purely as unique identifiers in the database?

I hope that's clear and a reasonable question. Please feel free to point me to the docs if I've overlooked something.

Thanks,
Greg
atrol
Site Admin
Posts: 8376
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Is enum order important?

Post by atrol »

Some enum values have a special meaning, e.g. the values of the status enum.
For example there is a configuration option $g_bug_resolved_status_threshold.
A bug is considered to be resolved whenever the status value is greater than $g_bug_resolved_status_threshold.
Please use Search before posting and read the Manual
ultrablue
Posts: 2
Joined: 06 Mar 2012, 00:27

Re: Is enum order important?

Post by ultrablue »

Thanks, atrol! That's really useful knowledge.

Greg
Post Reply