Commit 3f7e0ce0 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Disable DB structure caching on plugin installation

parent ff8d56d5
......@@ -531,6 +531,8 @@ class Plugin extends CommonDBTM {
**/
function install($ID) {
global $DB;
$message = '';
$type = ERROR;
......@@ -545,6 +547,7 @@ class Plugin extends CommonDBTM {
$function = 'plugin_' . $this->fields['directory'] . '_install';
if (function_exists($function)) {
$this->setLoaded('temp', $this->fields['directory']); // For autoloader
$DB->disableTableCaching(); //prevents issues on table/fieldExists upgrading from old versions
if ($function()) {
$type = INFO;
$function = 'plugin_' . $this->fields['directory'] . '_check_config';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment