diff --git a/workflow/engine/classes/model/om/BasePluginsRegistry.php b/workflow/engine/classes/model/om/BasePluginsRegistry.php
index 40fdba1ca..29d3abdd4 100644
--- a/workflow/engine/classes/model/om/BasePluginsRegistry.php
+++ b/workflow/engine/classes/model/om/BasePluginsRegistry.php
@@ -67,13 +67,13 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
* The value for the plugin_file field.
* @var string
*/
- protected $plugin_file = '';
+ protected $plugin_file;
/**
* The value for the plugin_folder field.
* @var string
*/
- protected $plugin_folder = '';
+ protected $plugin_folder;
/**
* The value for the plugin_setup_page field.
@@ -103,13 +103,13 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
* The value for the plugin_enable field.
* @var boolean
*/
- protected $plugin_enable = true;
+ protected $plugin_enable = false;
/**
* The value for the plugin_private field.
* @var boolean
*/
- protected $plugin_private = true;
+ protected $plugin_private = false;
/**
* The value for the plugin_menus field.
@@ -596,7 +596,7 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
$v = (string) $v;
}
- if ($this->plugin_file !== $v || $v === '') {
+ if ($this->plugin_file !== $v) {
$this->plugin_file = $v;
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_FILE;
}
@@ -618,7 +618,7 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
$v = (string) $v;
}
- if ($this->plugin_folder !== $v || $v === '') {
+ if ($this->plugin_folder !== $v) {
$this->plugin_folder = $v;
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_FOLDER;
}
@@ -722,7 +722,7 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
public function setPluginEnable($v)
{
- if ($this->plugin_enable !== $v || $v === true) {
+ if ($this->plugin_enable !== $v || $v === false) {
$this->plugin_enable = $v;
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_ENABLE;
}
@@ -738,7 +738,7 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
public function setPluginPrivate($v)
{
- if ($this->plugin_private !== $v || $v === true) {
+ if ($this->plugin_private !== $v || $v === false) {
$this->plugin_private = $v;
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_PRIVATE;
}
diff --git a/workflow/engine/config/schema.xml b/workflow/engine/config/schema.xml
index 7365e8009..17bee6c07 100644
--- a/workflow/engine/config/schema.xml
+++ b/workflow/engine/config/schema.xml
@@ -5623,14 +5623,14 @@
-
-
+
+
-
-
+
+
diff --git a/workflow/engine/data/mysql/schema.sql b/workflow/engine/data/mysql/schema.sql
index 2d12af100..855d623fe 100644
--- a/workflow/engine/data/mysql/schema.sql
+++ b/workflow/engine/data/mysql/schema.sql
@@ -3148,8 +3148,8 @@ CREATE TABLE `PLUGINS_REGISTRY`
`PLUGIN_DESCRIPTION` VARCHAR(200) default '',
`PLUGIN_CLASS_NAME` VARCHAR(100) NOT NULL,
`PLUGIN_FRIENDLY_NAME` VARCHAR(150) default '',
- `PLUGIN_FILE` VARCHAR(250) default '' NOT NULL,
- `PLUGIN_FOLDER` VARCHAR(100) default '' NOT NULL,
+ `PLUGIN_FILE` VARCHAR(250) NOT NULL,
+ `PLUGIN_FOLDER` VARCHAR(100) NOT NULL,
`PLUGIN_SETUP_PAGE` VARCHAR(100) default '',
`PLUGIN_COMPANY_LOGO` VARCHAR(100) default '',
`PLUGIN_WORKSPACES` VARCHAR(100) default '',
diff --git a/workflow/engine/src/ProcessMaker/Plugins/Adapters/PluginAdapter.php b/workflow/engine/src/ProcessMaker/Plugins/Adapters/PluginAdapter.php
index 1764e7ab2..6f12181f1 100644
--- a/workflow/engine/src/ProcessMaker/Plugins/Adapters/PluginAdapter.php
+++ b/workflow/engine/src/ProcessMaker/Plugins/Adapters/PluginAdapter.php
@@ -178,8 +178,7 @@ class PluginAdapter
foreach ($PMPluginRegistry as $propertyName => $propertyValue) {
foreach ($propertyValue as $key => $plugin) {
if (is_array($plugin) &&
- ((array_key_exists('Namespace', $plugin) && $plugin['Namespace'] == $Namespace) ||
- (!is_int($key) && $key == $Namespace))
+ (array_key_exists('Namespace', $plugin) && $plugin['Namespace'] == $Namespace)
) {
$newStructurePlugin[$propertyName][] = $plugin;
} elseif (is_array($plugin) &&
@@ -187,6 +186,8 @@ class PluginAdapter
$plugin['pluginName'] == $Namespace
) {
$newStructurePlugin[$propertyName][] = $plugin;
+ } elseif (!is_int($key) && $key == $Namespace) {
+ $newStructurePlugin[$propertyName][$key] = $plugin;
} elseif (is_string($plugin) && $plugin == $Namespace) {
$newStructurePlugin[$propertyName][] = $plugin;
}