Skip to content

Commit

Permalink
support idor token (since 9.5.2), fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Feb 18, 2021
1 parent 24b6095 commit 0ed35c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/filtergroups.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
//change mimetype
header("Content-type: application/javascript");

$idor_token = Session::getNewIDORToken('Group');

$web_dir = Plugin::getWebDir('itilcategorygroups');
$JS = <<<JAVASCRIPT
var groups_url = '{$web_dir}/ajax/group_values.php';
Expand Down Expand Up @@ -69,7 +71,8 @@
ticket_id: tickets_id,
type : type,
itilcategories_id: getItilcategories_id(),
searchText: params.term
searchText: params.term,
_idor_token: "{$idor_token}"
};
},
results: function (data, page) {
Expand Down

0 comments on commit 0ed35c1

Please sign in to comment.