Custom function Error Handling

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
bluescreenterror
Posts: 20
Joined: 16 Jan 2020, 11:19

Custom function Error Handling

Post by bluescreenterror »

Hi,

I wrote a custom function like advised in the guide to validate if the target_version field has a value (custom_function_override_issue_update_validate). The function works fine.

When the value is missing the user is redirected to thebug_report_page which show him the specified error.
Is there a way to stay on the bug_change_status_page and get a bubble with an error like on the bug_report_page when you miss a required field?

Is there a "natural" way to do this ? Or do I need to write a plugin for this ?

Thank you in advance!

Greetings,
bluescreenterror
Mantis: 2.23.0
XAMPP: v.3.2.4
PHP Version: 7.1.33
Windows Server 2016
Post Reply