Skip to content

Commit

Permalink
Added missing value in INSERT SQL requests during installation
Browse files Browse the repository at this point in the history
Set version to 2.5.2
fixes #23
  • Loading branch information
tomolimo committed Sep 13, 2019
1 parent 9d560b4 commit 4928a12
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ function convertDB($echo = false, $res = null) {
//left join glpi_plugin_timezones_users on glpi_plugin_timezones_users.users_id=users_id_tech;
// end drafts

$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'TicketTask' as items_type, id as items_id, `begin`, `end` FROM glpi_tickettasks;";
$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'TicketTask' as items_type, id as items_id, `begin`, `end`, NULL FROM glpi_tickettasks;";
$DB->query( $query );
}
if ($table['TABLE_NAME'] == 'glpi_problemtasks') {
$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'ProblemTask' as items_type, id as items_id, `begin`, `end` FROM glpi_problemtasks;";
$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'ProblemTask' as items_type, id as items_id, `begin`, `end`, NULL FROM glpi_problemtasks;";
$DB->query( $query );
}
if ($table['TABLE_NAME'] == 'glpi_changetasks') {
$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'ChangeTask' as items_type, id as items_id, `begin`, `end` FROM glpi_changetasks;";
$query = "INSERT INTO glpi_plugin_timezones_tasks_localtimes SELECT NULL, 'ChangeTask' as items_type, id as items_id, `begin`, `end`, NULL FROM glpi_changetasks;";
$DB->query( $query );
}

Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ GLPI: 0.83, 0.84, 0.85, 0.90 | PHP: 5 | locale: en
Version 2.1.2:
GLPI: 0.85, 0.90, 9.1 | PHP: 5, 7 | locales: en, fr, ru

Version 2.3.2
Version 2.3.x
GLPI: 9.2 | PHP: 5, 7 | locales: en, fr, ru, cs

Version 2.4.0
Version 2.4.x
GLPI: 9.3 | PHP: 5, 7 | locales: en, fr, ru, cs

Version 2.5.0
Version 2.5.x
GLPI: 9.4 | PHP: 5, 7 | locales: en, fr, ru, cs

## Installation procedure:
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// Original Author of file: Olivier Moron
// Purpose of file: to setup time zone management plugin to GLPI
// ----------------------------------------------------------------------
define ("PLUGIN_TIMEZONES_VERSION", "2.5.1");
define ("PLUGIN_TIMEZONES_VERSION", "2.5.2");

/**
* Summary of plugin_init_timezones
Expand Down
6 changes: 3 additions & 3 deletions timezones.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
</authors>
<versions>
<version>
<num>2.5.1</num>
<num>2.5.2</num>
<compatibility>9.4</compatibility>
</version>
<version>
<num>2.4.1</num>
<num>2.4.2</num>
<compatibility>9.3</compatibility>
</version>
<version>
<num>2.3.3</num>
<num>2.3.4</num>
<compatibility>9.2</compatibility>
</version>
<version>
Expand Down

0 comments on commit 4928a12

Please sign in to comment.