public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'PluginOrderOrder') { $survey = new self(); self::showOrderSupplierSurvey($item->getID()); if (!$survey->checkIfSupplierSurveyExists($item->getID()) && $item->can($item->getID(), UPDATE)) { $survey->showForm("", array('plugin_order_orders_id' => $item->getID())); } } return true; }