Skip to content

Commit

Permalink
Harmonized plugin and GLPI behaviour in case of adding a followup to …
Browse files Browse the repository at this point in the history
…a solved ticket

Set version to 2.0.2
  • Loading branch information
tomolimo committed Jul 13, 2021
1 parent e1cbf0f commit eb41d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static function plugin_pre_item_add_mailanalyzer($parm) {
// TicketFollowup creation only if ticket status is not solved or closed
$locTicket = new Ticket();
$locTicket->getFromDB((integer)$row['ticket_id']);
if ($locTicket->fields['status'] != CommonITILObject::SOLVED && $locTicket->fields['status'] != CommonITILObject::CLOSED) {
if ($locTicket->fields['status'] != CommonITILObject::CLOSED) {
$ticketfollowup = new ITILFollowup();
$input = $parm->input;
$input['items_id'] = $row['ticket_id'];
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define ("PLUGIN_MAILANALYZER_VERSION", "2.0.1");
define ("PLUGIN_MAILANALYZER_VERSION", "2.0.2");

/**
* Summary of plugin_init_mailanalyzer
Expand Down

0 comments on commit eb41d15

Please sign in to comment.