Re-order custom fields

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Faisal
Posts: 6
Joined: 01 Mar 2016, 09:32

Re-order custom fields

Post by Faisal »

I have added new custom field named 'Module' and I wish to reorder it.

I do not know whether it is possible or not. Please help me out on this!
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Re-order custom fields

Post by atrol »

There is a field "Sequence: " in section "Link custom field to project " on the page where you edit settings of a custom field.
Please use Search before posting and read the Manual
Faisal
Posts: 6
Joined: 01 Mar 2016, 09:32

Re: Re-order custom fields

Post by Faisal »

yes @atrol. Thanks for your reply.

But when updating sequence field with some digit, it resets to 0 always.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Re-order custom fields

Post by atrol »

Mighte be a bit confusing:
There is a list under "Linked Projects:" where I see the value that I entered before.
The input field itself resets to 0. This is the desired behavior.
Please use Search before posting and read the Manual
Faisal
Posts: 6
Joined: 01 Mar 2016, 09:32

Re: Re-order custom fields

Post by Faisal »

Please see the screenshots attached:

In CF.png - there are two fields added custom and I wish to reorder to top

In Up.png - See the fields populated in Report Issue page

Can we rearrange to get the position on top of 'Additional Information' field?

Referring CF.png, positioning of custom fields Type & Category - scope is between built in fields Additional Information and Upload File.

Can I do this by adjusting sequence number or can we do it in any another way?

Is is mandatory to edit the php page of bug_report_page.php for reordering?

Any thoughts....to resolve?
Attachments
Up.png
Up.png (7.1 KiB) Viewed 10558 times
CF.png
CF.png (13.27 KiB) Viewed 10558 times
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Re-order custom fields

Post by atrol »

There is no way to get what you want just by configuration options.
You could tweak the code like other users did https://www.mantisbt.org/bugs/view.php?id=11385
or you could do it in a cleaner way by writing a Mantis plugin that uses JavaScript to change the page.
Please use Search before posting and read the Manual
Faisal
Posts: 6
Joined: 01 Mar 2016, 09:32

Re: Re-order custom fields

Post by Faisal »

Ok! Thank You Atrol!
Post Reply