bug 413, quand on creait un nouvel evenement. si on faisait une faute toutes les...
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 6 Jun 2006 08:33:07 +0000 (08:33 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 6 Jun 2006 08:33:07 +0000 (08:33 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@298 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
htdocs.net/groupe/evt-modif.php
templates/xnet/groupe/evt-modif.tpl

index 40ab164..e604193 100644 (file)
--- 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 :
 
index dd6802f..93321a3 100644 (file)
@@ -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
index 78929c7..d1facd5 100644 (file)
@@ -47,7 +47,7 @@
     </tr>
     <tr>
       <td>EvĂ©nement en raccourci (pour les mailings listes)&nbsp;:</td>
-      <td><input type="text" name="short_name" value="{$evt.short_name}" size="20"/></td>
+      <td><input type="text" name="short_name" value="{$evt.short_name|default:$smarty.request.short_name}" size="20"/></td>
     </tr>
     <tr>
       <td>Descriptif :</td>