Author: jablko
Date: Thu Oct 21 21:12:26 2010
New Revision: 8358

Log:
Add "allow_extra_fields" option, fixes issue 1820

Modified:
   trunk/apps/qubit/modules/event/actions/editComponent.class.php
   trunk/apps/qubit/modules/relation/actions/editComponent.class.php

Modified: trunk/apps/qubit/modules/event/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/event/actions/editComponent.class.php      Thu Oct 
21 20:29:49 2010        (r8357)
+++ trunk/apps/qubit/modules/event/actions/editComponent.class.php      Thu Oct 
21 21:12:26 2010        (r8358)
@@ -153,6 +153,7 @@
   public function execute($request)
   {
     $this->form = new sfForm;
+    $this->form->getValidatorSchema()->setOption('allow_extra_fields', true);
     $this->form->getWidgetSchema()->setNameFormat('editEvent[%s]');
 
     // HACK Use static::$NAMES in PHP 5.3,

Modified: trunk/apps/qubit/modules/relation/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/relation/actions/editComponent.class.php   Thu Oct 
21 20:29:49 2010        (r8357)
+++ trunk/apps/qubit/modules/relation/actions/editComponent.class.php   Thu Oct 
21 21:12:26 2010        (r8358)
@@ -160,6 +160,7 @@
   public function execute($request)
   {
     $this->form = new sfForm;
+    $this->form->getValidatorSchema()->setOption('allow_extra_fields', true);
 
     // HACK Use static::$NAMES in PHP 5.3,
     // http://php.net/oop5.late-static-bindings

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