| ";
- echo $LANG['processmaker']['item']['selectprocess']." ";
+ _e('Select the process you want to add', 'processmaker');
echo " | ";
PluginProcessmakerProcess::dropdown(array( 'value' => 0, 'entity' => $item->fields['entities_id'], 'name' => 'plugin_processmaker_processes_id', 'condition' => "is_active=1"));
echo " | ";
@@ -632,7 +628,7 @@ class PluginProcessmakerCase extends CommonDBTM {
* @param mixed $withtemplate
*/
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
- global $LANG, $DB, $CFG_GLPI, $PM_SOAP;
+ global $PM_SOAP;
if ($item->getType() == __CLASS__) {
// we are in a case viewing the main tab
@@ -641,398 +637,16 @@ class PluginProcessmakerCase extends CommonDBTM {
} else {
- // the idea is to show a list of cases attached to the $item ITIL object
- // TODO give possibility to start a new case if needed
- self::showForItem($item);
- }
- }
-
- /**
- * Summary of displayTabContentForItem
- * @param CommonGLPI $item is the item
- * @param mixed $tabnum is the tab num
- * @param mixed $withtemplate has template
- * @return mixed
- */
- static function displayTabContentForItem_old(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
- global $LANG, $DB, $CFG_GLPI, $PM_SOAP;
-
- $config = $PM_SOAP->config; //PluginProcessmakerConfig::getInstance();
-
- if ($config->fields['maintenance'] == 0) {
-
- $items_id = $item->getID();
- $itemtype = $item->getType();
-
- $rand = rand();
- echo " |