View Issue Details

IDProjectCategoryView StatusLast Update
0031666mantisbtplug-inspublic2023-11-29 16:32
Reporterbluescreenterror Assigned Tocommunity  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0031666: Hook for Custom field on bug_change_status_page
Description

Hi,

is it possible to add a hook to the bug_change_status_page to allow a plugin to take over the control of which custom field is shown in which situation?

[..]
if(Event_Signal(EVENT_SHOW_CUSTOM_FIELD,array( $t_bug, $t_cf_id ))){
if( ( 'update' == $t_custom_status_label ) && ( !$t_require ) ) {
continue;
}
[..]
}
Would help to wait for ticket https://www.mantisbt.org/bugs/view.php?id=5650 and would allow a more customized control even when the ticket is fixed.

TagsNo tags attached.

Relationships

related to 0005650 acknowledged Investigate/Implement Enhanced Custom Field support 
related to 0005656 confirmed Change status to: 'page' not displaying the custom fields in it 
related to 0033358 closedatrol Custom fields are showing when resolving issues form despite not checking the option 

Activities

bluescreenterror

bluescreenterror

2022-12-09 04:16

reporter   ~0067208

Pull Request on GitHub => https://github.com/mantisbt/mantisbt/pull/1859

Related Changesets

MantisBT: master 38cb4b64

2023-02-05 11:05

bluescreenterror

Committer: community


Details Diff
New EVENT_UPDATE_BUG_SHOW_CUSTOM_FIELD

The Event is triggered in bug_change_status_page.php, allowing a plugin
to control which custom field is shown.

Fixes 0031666, PR https://github.com/mantisbt/mantisbt/pull/1859

Co-authored-by: msw <martin.schwarz@ibak.de>
Co-authored-by: Damien Regad <dregad@mantisbt.org>
Affected Issues
0031666
mod - bug_change_status_page.php Diff File
mod - core/events_inc.php Diff File
mod - docbook/Developers_Guide/en-US/Events_Reference_Bug.xml Diff File