Tomas Cohen Arazi
1cd1fcc9d7
This patch makes the update script override the configured enable_plugins setting in koha-conf.xml. on testing the failure I wrote trivial tests on how Koha::Plugins->new({ enable_plugins => 1 }) should work. Adding them to this patch as well. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
14 lines
425 B
Perl
14 lines
425 B
Perl
$DBversion = 'XXX'; # will be replaced by the RM
|
|
if( CheckVersion( $DBversion ) ) {
|
|
|
|
use Koha::Plugins;
|
|
|
|
my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins({ all => 1 });
|
|
foreach my $plugin ( @plugins ) {
|
|
$plugin->enable;
|
|
}
|
|
|
|
# Always end with this (adjust the bug info)
|
|
SetVersion( $DBversion );
|
|
print "Upgrade to $DBversion done (Bug 22053 - enable all plugins)\n";
|
|
}
|