Files
tomolino-processmaker/js/helpdesk.public.js.php
Moron, Olivier eeed2b061b * Added postmessage for communication between iframe and iframe parent for cases (CORS issue)
* Added date_creation and date_mod to case table
* Added PM document management as URL links in item host
* Added caseDump.php and caseRestore.php to be able to dump and restore cases.
* Added GLPI_TICKET_REQUESTTYPES_ID to RW requesttypes_id in tickets
* Added possibility to read/write GLPI_ITEM_GLOBAL_VALIDATION
* Added marketplace folder management
* Added a badge for the case id on tasks in Tickets, Changes and Problems
* Added group to Watcher for task to be claimed
* Changed int(11) into int unsigned
* Added some case fields to be searchable in tickets (changes or problems)
* Removed tech auto-assignment to ticket
* Removed task re-assign mandatory justification (is now optional in task, or process, or default)

* Fixed issue with processes that don't appear in dropdown when in search list
* Fixed first task not set as done when in simplified interface
* Fixed missing comma in SQL document table creation
* Fixes cancellation and deletion rights that were not independent
* Fixed add solution that was not compliant with GLPI9.5
* Fixed task cat that were active after add or updates
* Added a $DB->escape() to escape special chars before query

* Improved global response time for GLPI <-> PM server

Set version to 4.4.0 for GLPI 9.5
2023-10-16 14:48:42 +02:00

53 lines
1.9 KiB
PHP

<?php
/*
-------------------------------------------------------------------------
ProcessMaker plugin for GLPI
Copyright (C) 2014-2022 by Raynet SAS a company of A.Raymond Network.
https://www.araymond.com/
-------------------------------------------------------------------------
LICENSE
This file is part of ProcessMaker plugin for GLPI.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This plugin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this plugin. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
// Direct access to file
if (strpos($_SERVER['PHP_SELF'], "processmaker/js/helpdesk.public.js.php")) {
$AJAX_INCLUDE = 1;
define('GLPI_ROOT', '../../..');
include (GLPI_ROOT."/inc/includes.php");
header("Content-type: application/javascript");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Can not access directly to this file");
}
$config = $PM_SOAP->config; //PluginProcessmakerConfig::getInstance();
if (!$config['maintenance']) {
echo "$(function () {
// look if name='helpdeskform' is present. If yes replace the form.location
var ahrefTI = '".Plugin::getWebDir('processmaker')."/front/tracking.injector.php';
var formLink = $(\"form[name='helpdeskform']\")[0];
if (formLink != undefined) {
formLink.action = ahrefTI;
}
});
"; // end of echo
}