Author: jablko
Date: Fri Oct 15 15:10:41 2010
New Revision: 8172

Log:
Use literals

Modified:
   trunk/apps/qubit/modules/function/actions/editAction.class.php

Modified: trunk/apps/qubit/modules/function/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/function/actions/editAction.class.php      Fri Oct 
15 15:05:40 2010        (r8171)
+++ trunk/apps/qubit/modules/function/actions/editAction.class.php      Fri Oct 
15 15:10:41 2010        (r8172)
@@ -147,11 +147,11 @@
 
         if (null !== $note)
         {
-          $this->form->setDefault($name, $note->content);
+          $this->form->setDefault('maintenanceNotes', $note->content);
           $this->maintenanceNote = $note;
         }
-        $this->form->setValidator($name, new sfValidatorString);
-        $this->form->setWidget($name, new sfWidgetFormTextarea);
+        $this->form->setValidator('maintenanceNotes', new sfValidatorString);
+        $this->form->setWidget('maintenanceNotes', new sfWidgetFormTextarea);
 
         break;
 
@@ -267,7 +267,7 @@
           $note->typeId = QubitTerm::MAINTENANCE_NOTE_ID;
         }
 
-        $note->content = $this->form->getValue($name);
+        $note->content = $this->form->getValue('maintenanceNotes');
 
         $this->resource->notes[] = $note;
 

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