View Issue Details

IDProjectCategoryView StatusLast Update
0032390mantisbtplug-inspublic2023-10-14 12:28
Reporterdregad Assigned Todregad  
Status closedResolutionfixed 
Product Version2.25.0 
Target Version2.25.8Fixed in Version2.25.8 
Summary0032390: Impossible to install a plugin without any dependencies

When a plugin does not define any dependencies (requires attribute is null or empty array), the Install button is not available (see screenshot)

Additional Information

Regression introduced when the Manage Plugins page was refactored (see 0026142, commit MantisBT master c1076a52)

TagsNo tags attached.
Attached Files
image.png (14,580 bytes)   
image.png (14,580 bytes)   




2023-04-15 11:58

developer   ~0067659

Last edited: 2023-04-15 11:59

As a workaround, add *MantisCore` to the plugin's requirement in the plugin's register() function:

$this->requires = array( 'MantisCore' => '2.0.0' );

Related Changesets

MantisBT: master-2.25 54ef8296

2023-04-13 10:31


Details Diff
Allow installation of plugins without dependencies

The refactoring of manage_plugin_page with objects [1] introduced a
regression, preventing user from installing plugins without any
dependencies (i.e. having 'requires' property null or empty array).

Fixes 0032390

[1]: issue 0026142, commit c1076a520e38fb823c61ef540c2cf7da6e58aec2
Affected Issues
0026142, 0032390
mod - manage_plugin_page.php Diff File