Skip to content

Commit

Permalink
Fix scope - only tickets are affected
Browse files Browse the repository at this point in the history
"Display delete button" affect only ticket form not the change and problem.

fixes pluginsGLPI#266
  • Loading branch information
keguira authored Dec 9, 2024
1 parent 22c4333 commit 6207c6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/remove_btn.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ function handleEvent() {
$(document).ready(function() {
// only in ticket form
if (location.pathname.indexOf('ticket.form.php') > 0
|| location.pathname.indexOf('problem.form.php') > 0
|| location.pathname.indexOf('change.form.php') > 0) {
if (location.pathname.indexOf('ticket.form.php')) {
$(document).on('glpi.tab.loaded', function() {
let buttons_to_delete = {
Group: {
Expand Down

0 comments on commit 6207c6e

Please sign in to comment.