From 576208f32ec9879c4b62694bd9918eb057ed8ecb Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Tue, 6 Jun 2006 08:33:07 +0000 Subject: [PATCH] bug 413, quand on creait un nouvel evenement. si on faisait une faute toutes les donnees entrees disparaissait git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@298 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 1 + htdocs.net/groupe/evt-modif.php | 7 ++++--- templates/xnet/groupe/evt-modif.tpl | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40ab164..e604193 100644 --- a/ChangeLog +++ b/ChangeLog @@ -40,6 +40,7 @@ Bug/Wish : * Xnet : - #383: Paiements table relook. -Car + - #413: When creating a new event, datas don't disappear anymore. -Car From 0.9.8 Branch : diff --git a/htdocs.net/groupe/evt-modif.php b/htdocs.net/groupe/evt-modif.php index dd6802f..93321a3 100644 --- a/htdocs.net/groupe/evt-modif.php +++ b/htdocs.net/groupe/evt-modif.php @@ -123,6 +123,7 @@ if (Post::get('intitule')) { $evt['membres_only'] = Post::get('membres_only'); $evt['advertise'] = Post::get('advertise'); $evt['show_participants'] = Post::get('show_participants'); + if (!$short_name) $short_name = ''; $evt['short_name'] = $short_name; $evt['deadline_inscription'] = (Post::get('deadline', 'off')=='on')?null:(Post::get('inscr_Year')."-".Post::get('inscr_Month')."-".Post::get('inscr_Day')); @@ -169,8 +170,8 @@ if (Post::get('intitule')) { // request for a new payment if (Post::get('paiement_id') == -1 && $money_defaut >= 0) { - require_once ('validations.inc.php'); - $p = new PayReq( + require_once ('validations.inc.php'); + $p = new PayReq( Session::get('uid'), Post::get('intitule')." - ".$globals->asso('nom'), Post::get('site'), @@ -180,7 +181,7 @@ if (Post::get('intitule')) { 999, $globals->asso('id'), $eid); - $p->submit(); + $p->submit(); } // events with no sub-event: add a sub-event with no name diff --git a/templates/xnet/groupe/evt-modif.tpl b/templates/xnet/groupe/evt-modif.tpl index 78929c7..d1facd5 100644 --- a/templates/xnet/groupe/evt-modif.tpl +++ b/templates/xnet/groupe/evt-modif.tpl @@ -47,7 +47,7 @@ EvĂ©nement en raccourci (pour les mailings listes) : - + Descriptif : -- 2.1.4