View Issue Details

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

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.

Activities