You are not logged in.
Pages: 1
Topic closed
Setup of plugin :
- "Use the associated item's group" = YES
1- Ticket with linked element (example: a software with a group)
2- Changing the status of the "Closed" ticket => Error: "Security die. trying to load a forbidden class name"
I modified this it works:
Index: ticket.class.php
===================================================================
--- ticket.class.php (revision 237)
+++ ticket.class.php (working copy)
@@ -520,7 +520,7 @@
&& (is_array($ticket->input['items_id']))) {
foreach ($ticket->input['items_id'] as $type => $items) {
foreach ($items as $number => $id) {
- if (($item = $dbu->getItemForItemtype($id))
+ if (($item = $dbu->getItemForItemtype($type))
&& (!isset($ticket->input['_groups_id_requester'])
|| ($ticket->input['_groups_id_requester'] <= 0))) {
@@ -527,7 +527,8 @@
if ($item->isField('groups_id')) {
foreach ($items as $itemid) {
if ($item->getFromDB($itemid)) {
- $ticket->input['_groups_id_requester'] = $item->getField('groups_id');
+ $ticket->input['_itil_requester'] = array('_type' => 'group',
+ 'groups_id' => $item->getField('groups_id'));
}
}
}
Offline
Ticket ouvert sur la forge : https://forge.glpi-project.org/issues/5543
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Version published with this correction (2.0.1)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Pages: 1
Topic closed