numrows($result)) { while ($data=$DB->fetch_array($result)) { if( in_array( $_POST["entity_restrict"], PluginProcessmakerProcess::getEntitiesForProfileByProcess( $data["id"], $_SESSION['glpiactiveprofile']['id'], true) ) ) { $processes[$data["id"]] = $data["name"]; } } } echo ""; if (isset($_POST["comment"]) && $_POST["comment"]) { $paramscomment = array('value' => '__VALUE__', 'table' => "glpi_plugin_processmaker_processes"); if (isset($_POST['update_link'])) { $paramscomment['withlink'] = "comment_link_".$_POST["myname"].$_POST["rand"]; } Ajax::updateItemOnSelectEvent("dropdown_".$_POST["myname"].$_POST["rand"], "comment_".$_POST["myname"].$_POST["rand"], $CFG_GLPI["root_doc"]."/ajax/comments.php", $paramscomment); } Ajax::commonDropdownUpdateItem($_POST); ?>