fix error in New Process button when version is not greater or equal to 3

This commit is contained in:
Fernando Ontiveros
2025-06-19 07:15:18 -04:00
parent eeb4064a9c
commit a4668fb5e3
2 changed files with 2 additions and 22 deletions

View File

@@ -32,14 +32,9 @@ $conf = new Configurations();
$pmVersion = (preg_match("/^([\d\.]+).*$/", System::getVersion(), $arrayMatch)) ? $arrayMatch[1] : ""; //Otherwise: Branch master
$arrayFlagImportFileExtension = array("pm", "pmx", "pmx2", "bpmn");
$arrayFlagImportFileExtension = array("pmx", "pmx2", "bpmn");
$arrayFlagMenuNewOption = array("pm" => true, "bpmn" => true);
if ($pmVersion != "") {
$arrayFlagImportFileExtension = (version_compare($pmVersion . "", "3", ">=")) ? $arrayFlagImportFileExtension : array("pm");
$arrayFlagMenuNewOption = (version_compare($pmVersion . "", "3", ">=")) ? array("bpmn" => true) : array("pm" => true);
}
$arrayFlagMenuNewOption = array("bpmn" => true);
$oPluginRegistry = PluginRegistry::loadSingleton();