Bug 35536: Remove last two references to resultset PluginData
Test plan:
Run t/db_dependent/Koha/Plugins/Plugins.t
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 34cc0d29df)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
b50ceefdd2
commit
14a6b69661
|
|
@ -121,9 +121,8 @@ sub get_enabled_plugins {
|
|||
|
||||
my @plugin_classes;
|
||||
try {
|
||||
my $rs = Koha::Database->schema->resultset('PluginData');
|
||||
$rs = $rs->search({ plugin_key => '__ENABLED__', plugin_value => 1 });
|
||||
@plugin_classes = $rs->get_column('plugin_class')->all();
|
||||
my $rs = Koha::Plugins::Datas->search({ plugin_key => '__ENABLED__', plugin_value => 1 });
|
||||
@plugin_classes = $rs->get_column('plugin_class');
|
||||
} catch {
|
||||
warn "$_";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -194,9 +194,7 @@ subtest 'Version upgrade tests' => sub {
|
|||
my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
|
||||
|
||||
# make sure there's no version on the DB
|
||||
$schema->resultset('PluginData')
|
||||
->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )
|
||||
->delete;
|
||||
Koha::Plugins::Datas->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )->delete;
|
||||
|
||||
$plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
|
||||
my $version = $plugin->retrieve_data('__INSTALLED_VERSION__');
|
||||
|
|
|
|||
Loading…
Reference in New Issue