diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php b/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php index b805433f4..045cb688d 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php @@ -18,7 +18,10 @@ function create_ticket(){ }else{ $author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId(); } - Ticket::create_Ticket($title, $content, $category, $author); + $ticket_id = Ticket::create_Ticket($title, $content, $category, $author); + header("Location: index.php?page=show_ticket&id=".$ticket_id); + exit; + }catch (PDOException $e) { //ERROR: LIB DB is not online! header("Location: index.php"); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl index c97323520..59b0fa857 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl @@ -105,7 +105,7 @@ {/if} - +