From: x2003bruneau Date: Fri, 15 Dec 2006 16:15:32 +0000 (+0000) Subject: Several users complaints for this bug ==> prod X-Git-Tag: xorg/0.9.12~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ea7f248616779614a2b5830ed46d1dd5c30c539f;p=platal.git Several users complaints for this bug ==> prod git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.12@1277 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 9419e9c..5e6fb6f 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -348,7 +348,8 @@ class XnetEventsModule extends PLModule new_groupadmin_page('xnetevents/edit.tpl'); - $moments = range(1, 4); + $moments = range(1, 4); + $short_name = ''; $page->assign('moments', $moments); if (Post::v('intitule')) { @@ -366,7 +367,7 @@ class XnetEventsModule extends PLModule 'fin' => Post::v('fin_Year').'-'.Post::v('fin_Month') .'-'.Post::v('fin_Day').' '.Post::v('fin_Hour') .':'.Post::v('fin_Minute').':00', - 'short_name' => $short_name, + 'short_name' => is_null($short_name) ? '' : $short_name, ); $trivial = array('intitule', 'descriptif', 'noinvite', @@ -441,7 +442,9 @@ class XnetEventsModule extends PLModule VALUES ({?}, {?}, '', '', 0)", $eid, 1); } - pl_redirect('events'); + if (!is_null($short_name)) { + pl_redirect('events'); + } } // get a list of all the payment for this asso diff --git a/templates/xnetevents/edit.tpl b/templates/xnetevents/edit.tpl index c8b08ab..c4a0c44 100644 --- a/templates/xnetevents/edit.tpl +++ b/templates/xnetevents/edit.tpl @@ -80,7 +80,7 @@ function deadlineChange(box) + value="{$evt.short_name}" /> (n'utiliser que chiffres, lettres, tiret et point. garder court)