Skip to content

Commit

Permalink
Compatible with GLPI 9.5 (#21)
Browse files Browse the repository at this point in the history
* Compatible with GLPI 9.5

* Added logo
  • Loading branch information
tomolimo authored Apr 6, 2021
1 parent 68f00f8 commit 5237336
Show file tree
Hide file tree
Showing 12 changed files with 433 additions and 221 deletions.
81 changes: 47 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,66 @@
# ticketcleaner
New home for Ticket Cleaner GLPi plugin
# Ticket Cleaner
Home for Ticket Cleaner GLPI plugin

Currently mirrors https://forge.glpi-project.org/projects/ticketcleaner
See wiki for filter explanations: https://github.com/tomolimo/ticketcleaner/wiki

## 3.0.0
GLPI 9.5 compatible release

## 2.1.0
Beware that, when upgrading from a version lower than 2.0.0, this new release will not keep your existing filters. You'll have to input them again with the new interface that permits to edit them directly into GLPi.
Your former filters will be copied into a backup table that you may edit via your preferred mySQL query editor (table name is `backup_glpi_plugin_ticketcleaner_filters`).
You'll have to combine your former filters to get the new ones that will be entered into the new table, or to create new one from scratch.
## 2.5.3
Fixed issue with filter's name and comment

This version also brings the possibility to debug your regex using the GLPi debug mode (see wiki).

## 2.0.1
Extends 'regex' and 'replacement' size (instead of VARCHAR will use TEXT field type).
## 2.5.2
Typo fix

## 2.0.2
Added a test to prevent menu adding when not activated.
Added possibility to do online translation
## 2.5.0
Compatibility with GLPI 9.4

## 2.0.3
Added 'UTF-8' as default charset for htmlentities and html_entity_decode, fixes #3
## 2.4.0
Compatibility with GLPI 9.3

## 2.0.4
Changed the internal mechanism to check and delete attached pictures when in the 'pictures' folder. Fixes #4
## 2.4.2
Fixed issue with filter's name and comment

## 2.0.5
Added a filter to delete file tags from ticket content when files are deleted from list
## 2.4.1
Typo fix

## 2.1.0
Added arTableExists and arFieldExists to be compatible with 9.2
## 2.3.5
Fixed issue with filter's name and comment

## 2.3.1
Remove functions for 9.1 compatibility
## 2.3.4
Typo fix

## 2.3.3
Compatibility with GLPI 9.2
Fixed issue with the \r\n

## 2.3.4
Typo fix
## 2.3.1
Remove functions for 9.1 compatibility

## 2.4.0
Compatibility with GLPI 9.3
## 2.1.0
Beware that, when upgrading from a version lower than 2.0.0, this new release will not keep your existing filters. You'll have to input them again with the new interface that permits to edit them directly into GLPi.
Your former filters will be copied into a backup table that you may edit via your preferred mySQL query editor (table name is `backup_glpi_plugin_ticketcleaner_filters`).
You'll have to combine your former filters to get the new ones that will be entered into the new table, or to create new one from scratch.

## 2.4.1
Typo fix
This version also brings the possibility to debug your regex using the GLPi debug mode (see wiki).

## 2.5.0
Compatibility with GLPI 9.4
Added arTableExists and arFieldExists to be compatible with 9.2

## 2.5.1
Typo fix
## 2.0.5
Added a filter to delete file tags from ticket content when files are deleted from list

## 2.0.4
Changed the internal mechanism to check and delete attached pictures when in the 'pictures' folder. Fixes #4

## 2.0.3
Added 'UTF-8' as default charset for htmlentities and html_entity_decode, fixes #3

## 2.0.2
Added a test to prevent menu adding when not activated.
Added possibility to do online translation

## 2.0.1
Extends 'regex' and 'replacement' size (instead of VARCHAR will use TEXT field type).

## Older releases
Older releases are here: https://forge.glpi-project.org/projects/ticketcleaner
21 changes: 8 additions & 13 deletions front/filter.form.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
<?php
/*
* @version $Id$
-------------------------------------------------------------------------
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2015 Teclib'.
http://glpi-project.org
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
* -------------------------------------------------------------------------
Ticket Cleaner plugin
Copyright (C) 2016-2021 by Raynet SAS a company of A.Raymond Network.
http://www.araymond.com
-------------------------------------------------------------------------
LICENSE
This file is part of GLPI.
This file is part of Ticket Cleaner plugin for GLPI.
GLPI is free software; you can redistribute it and/or modify
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GLPI is distributed in the hope that it will be useful,
This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
along with this plugin. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

Expand Down
27 changes: 27 additions & 0 deletions front/filter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
<?php
/*
* -------------------------------------------------------------------------
Ticket Cleaner plugin
Copyright (C) 2016-2021 by Raynet SAS a company of A.Raymond Network.
http://www.araymond.com
-------------------------------------------------------------------------
LICENSE
This file is part of Ticket Cleaner plugin for GLPI.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this plugin. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

include ("../../../inc/includes.php");


Expand Down
12 changes: 6 additions & 6 deletions front/user.form.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<?php
/*
* -------------------------------------------------------------------------
Form Validation plugin
Copyright (C) 2016 by Raynet SAS a company of A.Raymond Network.
Ticket Cleaner plugin
Copyright (C) 2016-2021 by Raynet SAS a company of A.Raymond Network.
http://www.araymond.com
-------------------------------------------------------------------------
LICENSE
This file is part of Form Validation plugin for GLPI.
This file is part of Ticket Cleaner plugin for GLPI.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GLPI is distributed in the hope that it will be useful,
This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
along with this plugin. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
*/

define('GLPI_ROOT', '../../..');
include (GLPI_ROOT . "/inc/includes.php");
Expand Down
Loading

0 comments on commit 5237336

Please sign in to comment.