diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 12f157c96..8e2cb95be 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -523,6 +523,7 @@ abstract class MetaModel } else { + // If the format changes here, do not forget to update the setup index page (detection of installed modules) return self::$m_sTablePrefix.$sTableRaw; } } diff --git a/setup/setuppage.class.inc.php b/setup/setuppage.class.inc.php index 3e62f2764..bf00b0590 100644 --- a/setup/setuppage.class.inc.php +++ b/setup/setuppage.class.inc.php @@ -269,6 +269,11 @@ table.formTable { public static function AddModule($sFilePath, $sId, $aArgs) { + if (!array_key_exists('itop_version', $aArgs)) + { + // Assume 1.0.2 + $aArgs['itop_version'] = '1.0.2'; + } foreach (self::$m_aModuleArgs as $sArgName => $sArgDesc) { if (!array_key_exists($sArgName, $aArgs))