2015-10-09 14:13:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
2016-10-25 11:37:01 +02:00
|
|
|
include ( "../../../inc/includes.php");
|
2015-10-09 14:13:52 +02:00
|
|
|
|
|
|
|
|
$config = new PluginProcessmakerConfig();
|
|
|
|
|
if (isset($_POST["update"])) {
|
2017-05-06 18:38:24 +02:00
|
|
|
$config->check($_POST['id'], UPDATE);
|
|
|
|
|
|
|
|
|
|
// save
|
|
|
|
|
$config->update($_POST);
|
2015-10-09 14:13:52 +02:00
|
|
|
|
2016-10-25 11:37:01 +02:00
|
|
|
|
2017-05-06 18:38:24 +02:00
|
|
|
Html::back();
|
2016-10-25 11:37:01 +02:00
|
|
|
|
2017-05-06 18:38:24 +02:00
|
|
|
} else if (isset($_POST["refresh"])) {
|
|
|
|
|
$config->refresh($_POST); // used to refresh process list, task category list
|
|
|
|
|
Html::back();
|
|
|
|
|
}
|
2016-10-25 11:37:01 +02:00
|
|
|
|
2015-10-09 14:13:52 +02:00
|
|
|
Html::redirect($CFG_GLPI["root_doc"]."/front/config.form.php?forcetab=".
|
|
|
|
|
urlencode('PluginProcessmakerConfig$1'));
|