Skip to content

Commit b7641cd

Browse files
committed
Revert change 85b43ea as it brings unexpected behavior if Plugins/Modules contain old versions of CakePHP
#1578
1 parent 1550a4b commit b7641cd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Lib/PluginManager.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ private function addAllPlugins() {
8989
);
9090
$this->application->addPlugin($moduleName);
9191

92-
if (is_file(PLUGIN . $moduleName . DS . 'vendor/autoload.php')) {
93-
require PLUGIN . $moduleName . DS . 'vendor/autoload.php';
94-
}
92+
// https://github.com/it-novum/openITCOCKPIT/pull/1578
93+
// This leads to issues when Plugins/Modules have older version of CakePHP (to run Tests for example)
94+
// Issues like 'Unknown method "selectQuery" called on App\\Model\\Table\\AgentchecksTable'
95+
//if (is_file(PLUGIN . $moduleName . DS . 'vendor/autoload.php')) {
96+
// require PLUGIN . $moduleName . DS . 'vendor/autoload.php';
97+
//}
9598

9699
$pluginAssociationsFile = PLUGIN . $moduleName . DS . 'config' . DS . 'associations.php';
97100
if (file_exists($pluginAssociationsFile)) {

0 commit comments

Comments
 (0)