-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set version to 4.0.0
- Loading branch information
Showing
36 changed files
with
11,046 additions
and
10,727 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# ProcessMaker plugin | ||
|
||
GLPI plugin that provides an interface with a customized ProcessMaker server (https://github.com/tomolimo/processmaker-server). | ||
|
||
version 3.4.x is compatible with GLPI 9.2 and needs ProcessMaker either 3.0.1.8-RE-1.12 (https://github.com/tomolimo/processmaker-server/releases/tag/3.0.1.8-RE-1.12) or 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/tag/3.3.0-RE-1.5) | ||
|
||
version 3.5.x is compatible with GLPI 9.3 and needs ProcessMaker 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/latest) | ||
|
||
version 3.6.x is compatible with GLPI 9.4 and needs ProcessMaker 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/latest) | ||
|
||
This plugin can run classic and bpmn processes | ||
|
||
An IRC channel is available: #processmaker-glpi on https://webchat.freenode.net/ | ||
# ProcessMaker plugin | ||
|
||
GLPI plugin that provides an interface with a customized ProcessMaker server (https://github.com/tomolimo/processmaker-server). | ||
|
||
version 3.4.x is compatible with GLPI 9.2 and needs ProcessMaker either 3.0.1.8-RE-1.12 (https://github.com/tomolimo/processmaker-server/releases/tag/3.0.1.8-RE-1.12) or 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/tag/3.3.0-RE-1.5) | ||
|
||
version 3.5.x is compatible with GLPI 9.3 and needs ProcessMaker 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/latest) | ||
|
||
version 3.6.x is compatible with GLPI 9.4 and needs ProcessMaker 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/latest) | ||
|
||
version 4.0.0 is compatible with GLPI 9.5 and needs ProcessMaker 3.3.0-RE-1.x (https://github.com/tomolimo/processmaker-server/releases/latest) | ||
|
||
This plugin can run classic and bpmn processes | ||
|
||
An IRC channel is available: #processmaker-glpi on https://webchat.freenode.net/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
*/ | ||
|
||
if (strpos($_SERVER['PHP_SELF'], "dropdownTicketCategories.php")) { | ||
include ("../../../inc/includes.php"); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} else if (!defined('GLPI_ROOT')) { | ||
die("Sorry. You can't access this file directly"); | ||
} | ||
|
||
$opt['entity'] = $_POST["entity_restrict"] ?? -1; | ||
|
||
if (isset($_POST["condition"])) { | ||
$opt['condition'] = $_POST["condition"]; | ||
} | ||
|
||
$currentcateg = new ITILCategory(); | ||
$currentcateg->getFromDB($_POST['value']); | ||
|
||
if ($_POST["type"]) { | ||
switch ($_POST['type']) { | ||
case Ticket::INCIDENT_TYPE : | ||
$opt['condition']['is_incident'] = '1'; | ||
if ($currentcateg->getField('is_incident') == 1) { | ||
$opt['value'] = $_POST['value']; | ||
} | ||
break; | ||
|
||
case Ticket::DEMAND_TYPE: | ||
$opt['condition']['is_request'] = '1'; | ||
if ($currentcateg->getField('is_request') == 1) { | ||
$opt['value'] = $_POST['value']; | ||
} | ||
break; | ||
} | ||
} | ||
|
||
ITILCategory::dropdown($opt); |
Oops, something went wrong.