Skip to content

Commit 5d1dba2

Browse files
committed
Fix install/uninstall
1 parent 5bbdb83 commit 5d1dba2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hook.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function plugin_moreticket_uninstall() {
145145
"glpi_plugin_moreticket_notificationtickets"];
146146

147147
foreach ($tables as $table) {
148-
$DB->dropTable($table);
148+
$DB->dropTable($table, true);
149149
}
150150

151151
//Delete rights associated with the plugin
@@ -402,8 +402,8 @@ function plugin_moreticket_post_item_form($params) {
402402
// automatically click follow up set ticket to waiting status switch
403403
if (strpos($_SERVER['REQUEST_URI'], "ticket.form.php") !== false) {
404404
if($config->fields['waiting_by_default_followup'] && Session::haveRight('ticket', Ticket::OWN)){
405-
echo "<script>
406-
$(document).ready(function() {
405+
echo "<script>
406+
$(document).ready(function() {
407407
let buttonFollowup = document.getElementById('itil-footer').querySelector(\"button[data-bs-target='#new-ITILFollowup-block']\");
408408
console.log(buttonFollowup);
409409
buttonFollowup.addEventListener('click', e => {

0 commit comments

Comments
 (0)