[Devel] r298 - branches/dui

svn at agendadulibre.org svn at agendadulibre.org
Mar 2 Oct 23:30:27 CEST 2007


Author: ldayot
Date: Tue Oct  2 23:29:36 2007
New Revision: 298

Log:
Correction punaise : non prise en compte des tags categorises depuis le 
formulaire submit lorsqu'on visualise avant validation.



Modified:
   branches/dui/submit.php

Modified: branches/dui/submit.php
==============================================================================
--- branches/dui/submit.php	(original)
+++ branches/dui/submit.php	Tue Oct  2 23:29:36 2007
@@ -237,17 +237,21 @@
 {
   // format tags
   $event_tags = $_POST['__event_tags'];
-  if (is_array($event_tags))
+  if (is_array($_POST['tags']))
+  {
     foreach($_POST['tags'] as $aTags)
       if (is_array($aTags))
         $event_tags .= " ". implode(' ', $aTags);
       else
         $event_tags .= " ". $aTags;
+  }
   $event_tags = trim(str_replace("  ", " ", $event_tags));
 }
 else
   $event_tags = "";
 
+echo "<h1>$event_tags</h1>";
+
 /* If user submitted event */
 if (isset($_POST['__event_save']))
 {


Plus d'informations sur la liste de diffusion Devel