Navigation Menu

Skip to content

Commit

Permalink
Add no-op upgrade step in plugin_upgrade()
Browse files Browse the repository at this point in the history
Implement the same functionality that was added to the MantisBT
installer in 061e66b.

This is a prerequisite to fix an issue with Source Integration plugin
mantisbt-plugins/source-integration#36.

Fixes #23367
  • Loading branch information
dregad committed Sep 29, 2017
1 parent 46422ee commit fc93a7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/plugin_api.php
Expand Up @@ -699,6 +699,12 @@ function plugin_upgrade( MantisPlugin $p_plugin ) {
}
break;

case null:
# No-op upgrade step
$t_sqlarray = false;
$t_status = 2;
break;

default:
$t_sqlarray = call_user_func_array(
array( $t_dict, $t_schema[$i][0] ),
Expand Down

0 comments on commit fc93a7c

Please sign in to comment.