Author: jablko
Date: Tue Oct 19 16:05:18 2010
New Revision: 8311

Log:
Update parameter name

Modified:
   
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php

Modified: 
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
==============================================================================
--- 
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
    Tue Oct 19 16:01:12 2010        (r8310)
+++ 
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
    Tue Oct 19 16:05:18 2010        (r8311)
@@ -22,30 +22,30 @@
   // Arrays not allowed in class constants
   public static
     $NAMES = array(
-      'updateEvents[new][typeId]',
-      'updateEvents[new][startDate]',
-      'updateEvents[new][endDate]',
-      'updateEvents[new][dateDisplay]');
+      'editEvents[new][typeId]',
+      'editEvents[new][startDate]',
+      'editEvents[new][endDate]',
+      'editEvents[new][dateDisplay]');
 
   protected function addField($name)
   {
     switch ($name)
     {
-      case 'updateEvents[new][typeId]':
+      case 'editEvents[new][typeId]':
 
         foreach (sfIsadPlugin::eventTypes() as $item)
         {
           $choices[$item->id] = $item->__toString();
         }
 
-        $this->form->setValidator('updateEvents[new][typeId]', new 
sfValidatorString);
-        $this->form->setWidget('updateEvents[new][typeId]', new 
sfWidgetFormSelect(array('choices' => $choices)));
+        $this->form->setValidator('editEvents[new][typeId]', new 
sfValidatorString);
+        $this->form->setWidget('editEvents[new][typeId]', new 
sfWidgetFormSelect(array('choices' => $choices)));
 
         break;
 
-      case 'updateEvents[new][startDate]':
-      case 'updateEvents[new][endDate]':
-      case 'updateEvents[new][dateDisplay]':
+      case 'editEvents[new][startDate]':
+      case 'editEvents[new][endDate]':
+      case 'editEvents[new][dateDisplay]':
         $this->form->setValidator($name, new sfValidatorString);
         $this->form->setWidget($name, new sfWidgetFormInput);
 
@@ -65,9 +65,9 @@
    */
   protected function updateEvents()
   {
-    if (isset($this->request->updateEvents))
+    if (isset($this->request->editEvents))
     {
-      foreach ($this->request->updateEvents as $updateDate)
+      foreach ($this->request->editEvents as $updateDate)
       {
         if (isset($updateDate['id']) && !isset($this->request->sourceId))
         {

-- 
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