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
8 changes: 0 additions & 8 deletions phpunit.xml

This file was deleted.

9 changes: 9 additions & 0 deletions src/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,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 +516,7 @@ public function uninstall() {
$this->deleteTicketRelation();
$this->deleteTables();
$this->deleteNotifications();
$this->deleteMiniDashboard();

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