View Issue Details

IDProjectCategoryView StatusLast Update
0025677mantisbtplug-inspublic2019-04-04 06:36
Reporter123 Assigned To 
Status acknowledgedResolutionopen 
Summary0025677: Invalid return value plugin_get_current() when used in Mantis Column classes.

When I try to get the name of the current plugin, during the execution of clear_cache(), cache(), display(), value(), sortquery() from my column class that extends MantisColumn, the plugin_get_current() function returns null.
Based on the logic of the functioning of other parts of the mantisbt plugin subsystem subsystem code, I expected the return of the name of my plugin and not null.
Unfortunately, this problem does not allow the use of the plugin_config_get() function and possibly others, since the definition of the name of the current plug-in is performed inside these functions, and is not passed as a parameter, such as in plugin_get_table().

Additional Information

Follows a discussion on Gitter.

TagsNo tags attached.


Issue History

Date Modified Username Field Change
2019-04-04 06:14 123 New Issue
2019-04-04 06:15 123 Note Added: 0061823
2019-04-04 06:36 dregad Status new => acknowledged
2019-04-04 06:36 dregad Category bugtracker => plug-ins
2019-04-04 06:36 dregad Additional Information Updated View Revisions