Merged in bugfix/HOR-4662 (pull request #6520)
HOR-4662 Approved-by: Dante Loayza <dante.loayza@colosa.com> Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com> Approved-by: Aldo Mauricio Veliz Valenzuela <mauricio@colosa.com> Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
@@ -84,6 +84,8 @@ try {
|
|||||||
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
||||||
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
||||||
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
||||||
|
// In order to keep the custom plugins state, it is required to set the attribute before saving the info
|
||||||
|
$plugin->setEnabled(true);
|
||||||
$pluginRegistry->savePlugin($plugin->getNamespace());
|
$pluginRegistry->savePlugin($plugin->getNamespace());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ if ($aux['extension'] != 'dat') {
|
|||||||
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
foreach ($pluginRegistry->getAllPluginsDetails() as $plugin) {
|
||||||
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
if ($plugin->isEnabled() && !in_array($plugin->getNamespace(), $licenseManager->features)) {
|
||||||
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
$pluginRegistry->disablePlugin($plugin->getNamespace());
|
||||||
|
// In order to keep the custom plugins state, it is required to set the attribute before saving the info
|
||||||
|
$plugin->setEnabled(true);
|
||||||
$pluginRegistry->savePlugin($plugin->getNamespace());
|
$pluginRegistry->savePlugin($plugin->getNamespace());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user