Mantis plugin - RequiredFields

Post about your customizations to share with others.

Moderators: Developer, Contributor

rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

I've a version where I had corrected a problem... do not remember what it was :p but I think it will correct at least one error.

Could you test it and let me know ?

Edit: forgot the link... http://web.magellium.fr/~rct/mantis/Req ... v1.0.3.zip

Romain
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Mantis plugin - RequiredFields

Post by Reinder »

yes! That works! Cheers!
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

Version updated... a dirty bug fixed :)
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

Oooops I hadn't checked the file I gave you... This is a development version... You must rename "pages/requiredfields_edit - Copie.php" into "pages/requiredfields_edit.php".
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

New version 1.0.4 (1.0.3 fully developped) which brings the ability to configure the required fields to multiple projects at the same time.
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Mantis plugin - RequiredFields

Post by Reinder »

rct wrote:New version 1.0.4 (1.0.3 fully developped) which brings the ability to configure the required fields to multiple projects at the same time.
Where can I find the 1.0.4 version then? Because the link you gave above points to 1.0.3?
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

In the first post of this thread.
simon.k

Re: Mantis plugin - RequiredFields

Post by simon.k »

I've changed the trigger_error from ERROR_PLUGIN_GENERIC to ERROR_EMPTY_FIELD, resulting in nicer error messages

The lang file has to be modified too, with the new error code the error message is 'A necessary field "%1$s" was empty. Please recheck your inputs.';

Thanks for this nice plugin, saved me some time :)
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

Thank you for the tip I've updated the plugin (see first message for the link).
rct
Posts: 16
Joined: 06 Jan 2012, 12:28

Re: Mantis plugin - RequiredFields

Post by rct »

Hello,

I'm trying to update my plugin to check for version, target version and fixed in version.
I would like it to work like custom fields (required on report, required on update, required on resolved and required on closed). See attachment for a picture.
But I have problems to do so : :(

Explanations :
My plugin subscribe to those events : EVENT_REPORT_BUG_DATA, EVENT_UPDATE_BUG but it looks like it does not do the full job :
- Group actions don't trigger those events and the EVENT_BUG_ACTION is triggered after the bug is saved into the database
- In the View Issue Details page when Change status to is set to Resolved or Closed the EVENT_UPDATE_BUG event is triggered after bug is saved into the database

Does someone have an idea on how to deal with that (without having to hack the mantisbt code) ?
Attachments
required_fields.png
required_fields.png (24.68 KiB) Viewed 14523 times
Post Reply