Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Formcreator Changelog

## [3.0.0 (Migration Only)](https://github.com/pluginsGLPI/formcreator/compare/2.13.10...3.0.0) (Unreleased)
## [3.0.1 (Migration Only)] - 2025-11-13

### Fixed

- Fixed the removal of the mini dashboard when uninstalling the plugin
- Fixed the `class not found` error during uninstallation

## [3.0.0 (Migration Only)](https://github.com/pluginsGLPI/formcreator/compare/2.13.10...3.0.0) 2025-09-30

### 🚨 BREAKING CHANGES - END OF LIFE VERSION

Expand Down
2 changes: 2 additions & 0 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function plugin_formcreator_install() {
* @return boolean
*/
function plugin_formcreator_uninstall() {
spl_autoload_register('plugin_formcreator_autoload');

$migration = new Migration(PLUGIN_FORMCREATOR_SCHEMA_VERSION);

// Display EOL uninstall message
Expand Down
380 changes: 380 additions & 0 deletions install/mysql/plugin_formcreator_3.0.1_empty.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"tag": true
}
},
"version": "3.0.0"
"version": "3.0.1"
}
8 changes: 0 additions & 8 deletions phpunit.xml

This file was deleted.

5 changes: 5 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ This version only provides migration support. For form functionality, use GLPI 1
<author>Teclib'</author>
</authors>
<versions>
<version>
<num>3.0.1</num>
<compatibility>~11.0</compatibility>
<download_url>https://github.com/pluginsGLPI/formcreator/releases/download/3.0.1/glpi-formcreator-3.0.1.tar.bz2</download_url>
</version>
<version>
<num>3.0.0</num>
<compatibility>~11.0</compatibility>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/** @var array $CFG_GLPI */
global $CFG_GLPI;
// Version of the plugin (major.minor.bugfix)
define('PLUGIN_FORMCREATOR_VERSION', '3.0.0');
define('PLUGIN_FORMCREATOR_VERSION', '3.0.1');
// Schema version of this version (major.minor only)
define('PLUGIN_FORMCREATOR_SCHEMA_VERSION', '3.0');
// is or is not an official release of the plugin
Expand Down
10 changes: 10 additions & 0 deletions src/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ protected function deleteTables() {
];

foreach ($itemtypes as $itemtype) {
// @phpstan-ignore-next-line argument.type
$table = getTableForItemType($itemtype);
$log = new Log();
$log->deleteByCriteria(['itemtype' => $itemtype]);
Expand All @@ -491,6 +492,14 @@ protected function deleteTables() {
$displayPreference->deleteByCriteria(['itemtype' => 'PluginFormcreatorIssue']);
}

protected function deleteMiniDashboard(): bool {
$dashboard = new Dashboard();

return $dashboard->deleteByCriteria([
'key' => 'plugin_formcreator_issue_counters'
]);
}

/**
* http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php
* @param string $haystack
Expand All @@ -508,6 +517,7 @@ public function uninstall() {
$this->deleteTicketRelation();
$this->deleteTables();
$this->deleteNotifications();
$this->deleteMiniDashboard();

$config = new Config();
$config->deleteByCriteria(['context' => 'formcreator']);
Expand Down