$change->redirectToList();
        } else {
            if (isset($_POST["purge"])) {
                $change->check($_POST["id"], PURGE);
                $change->delete($_POST, 1);
                Event::log($_POST["id"], "change", 4, "maintain", sprintf(__('%s purges an item'), $_SESSION["glpiname"]));
                $change->redirectToList();
            } else {
                if (isset($_POST["update"])) {
                    $change->check($_POST["id"], UPDATE);
                    $change->update($_POST);
                    Event::log($_POST["id"], "change", 4, "maintain", sprintf(__('%s updates an item'), $_SESSION["glpiname"]));
                    Html::back();
                } else {
                    if (isset($_POST['addme_assign'])) {
                        $change_user = new Change_User();
                        $change->check($_POST['changes_id'], READ);
                        $input = array('changes_id' => $_POST['changes_id'], 'users_id' => Session::getLoginUserID(), 'use_notification' => 1, 'type' => CommonITILActor::ASSIGN);
                        $change_user->add($input);
                        Event::log($_POST['changes_id'], "change", 4, "maintain", sprintf(__('%s adds an actor'), $_SESSION["glpiname"]));
                        Html::redirect($CFG_GLPI["root_doc"] . "/front/change.form.php?id=" . $_POST['changes_id']);
                    } else {
                        Html::header(Change::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF'], "helpdesk", "change");
                        $change->display($_GET);
                        Html::footer();
                    }
                }
            }
        }
    }
}