Skip to content

Commit 5b1cbbd

Browse files
committed
Fix links with GLPI
Bump version
1 parent d51b8c3 commit 5b1cbbd

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

cmdb.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<author>Infotel</author>
2424
</authors>
2525
<versions>
26+
<version>
27+
<num>3.1.4</num>
28+
<compatibility>~11.0</compatibility>
29+
<download_url>https://github.com/InfotelGLPI/cmdb/releases/download/3.1.4/glpi-cmdb-3.1.4.tar.bz2</download_url>
30+
</version>
2631
<version>
2732
<num>3.1.3</num>
2833
<compatibility>~11.0</compatibility>

hook.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ function plugin_cmdb_install()
172172
}
173173
}
174174

175+
$DB->runFile(PLUGIN_CMDB_DIR . "/install/sql/update-3.1.4.sql");
176+
175177
Profile::initProfile();
176178
Profile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);
177179

install/sql/update-3.1.4.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
UPDATE `glpi_items_tickets` SET `itemtype` = 'GlpiPlugin\\Resources\\Resource' WHERE `itemtype` = 'PluginResourcesResource';
2+
UPDATE `glpi_items_problems` SET `itemtype` = 'GlpiPlugin\\Resources\\Resource' WHERE `itemtype` = 'PluginResourcesResource';
3+
UPDATE `glpi_changes_items` SET `itemtype` = 'GlpiPlugin\\Cmdb\\Operationprocess' WHERE `itemtype` = 'PluginCmdbOperationprocess';
4+
UPDATE `glpi_documents_items` SET `itemtype` = 'GlpiPlugin\\Cmdb\\Operationprocess' WHERE `itemtype` = 'PluginCmdbOperationprocess';
5+
UPDATE `glpi_documents_items` SET `itemtype` = 'GlpiPlugin\\Cmdb\\CIType' WHERE `itemtype` = 'PluginCmdbCIType';

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
use GlpiPlugin\Cmdb\Profile;
4343
use function Safe\mkdir;
4444

45-
define('PLUGIN_CMDB_VERSION', '3.1.3');
45+
define('PLUGIN_CMDB_VERSION', '3.1.4');
4646

4747
if (!defined("PLUGIN_CMDB_DIR")) {
4848
define("PLUGIN_CMDB_DIR", Plugin::getPhpDir("cmdb"));

0 commit comments

Comments
 (0)