Page 2 of 2
Re: Mantis plugin - RequiredFields
Posted: 20 Mar 2012, 23:09
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
Re: Mantis plugin - RequiredFields
Posted: 21 Mar 2012, 08:19
by Reinder
yes! That works! Cheers!
Re: Mantis plugin - RequiredFields
Posted: 21 Mar 2012, 09:08
by rct
Version updated... a dirty bug fixed

Re: Mantis plugin - RequiredFields
Posted: 21 Mar 2012, 11:44
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".
Re: Mantis plugin - RequiredFields
Posted: 21 Mar 2012, 13:35
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.
Re: Mantis plugin - RequiredFields
Posted: 22 Mar 2012, 07:58
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?
Re: Mantis plugin - RequiredFields
Posted: 22 Mar 2012, 08:40
by rct
In the first post of this thread.
Re: Mantis plugin - RequiredFields
Posted: 02 May 2012, 08:19
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

Re: Mantis plugin - RequiredFields
Posted: 02 May 2012, 09:55
by rct
Thank you for the tip I've updated the plugin (see first message for the link).
Re: Mantis plugin - RequiredFields
Posted: 27 Oct 2012, 12:14
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) ?