View | Details | Raw Unified | Return to bug 35536
Collapse All | Expand All

(-)a/Koha/Plugins.pm (-3 / +2 lines)
Lines 121-129 sub get_enabled_plugins { Link Here
121
121
122
        my @plugin_classes;
122
        my @plugin_classes;
123
        try {
123
        try {
124
            my $rs = Koha::Database->schema->resultset('PluginData');
124
            my $rs = Koha::Plugins::Datas->search({ plugin_key => '__ENABLED__', plugin_value => 1 });
125
            $rs = $rs->search({ plugin_key => '__ENABLED__', plugin_value => 1 });
125
            @plugin_classes = $rs->get_column('plugin_class');
126
            @plugin_classes = $rs->get_column('plugin_class')->all();
127
        } catch {
126
        } catch {
128
            warn "$_";
127
            warn "$_";
129
        };
128
        };
(-)a/t/db_dependent/Koha/Plugins/Plugins.t (-4 / +1 lines)
Lines 194-202 subtest 'Version upgrade tests' => sub { Link Here
194
    my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
194
    my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
195
195
196
    # make sure there's no version on the DB
196
    # make sure there's no version on the DB
197
    $schema->resultset('PluginData')
197
    Koha::Plugins::Datas->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )->delete;
198
        ->search( { plugin_class => $plugin->{class}, plugin_key => '__INSTALLED_VERSION__' } )
199
        ->delete;
200
198
201
    $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
199
    $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } );
202
    my $version = $plugin->retrieve_data('__INSTALLED_VERSION__');
200
    my $version = $plugin->retrieve_data('__INSTALLED_VERSION__');
203
- 

Return to bug 35536