Author: jablko
Date: Tue Oct 19 16:45:53 2010
New Revision: 8318

Log:
Keep parameter keys unique

Modified:
   trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php

Modified: trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php        
Tue Oct 19 16:36:42 2010        (r8317)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/_event.php        
Tue Oct 19 16:45:53 2010        (r8318)
@@ -19,9 +19,9 @@
       </tr> 
     </thead><tbody>
 
-      <?php foreach ($resource->getDates() as $i => $item): ?>
+      <?php $i = 0; foreach ($resource->getDates() as $item): ?>
 
-        <?php $form->getWidgetSchema()->setNameFormat("editEvents[$i][%s]") ?>
+        <?php $form->getWidgetSchema()->setNameFormat("editEvents[$i][%s]"); 
$i++ ?>
 
         <tr class="related_obj_<?php echo $item->id ?>">
           <td>
@@ -50,6 +50,8 @@
 
       <?php endforeach; ?>
 
+      <?php $form->getWidgetSchema()->setNameFormat("editEvents[$i][%s]"); 
$i++ ?>
+
       <tr>
         <td>
           <div class="animateNicely">

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to