Author: weaverryan
Date: 2010-01-17 23:56:08 +0100 (Sun, 17 Jan 2010)
New Revision: 26789
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalContentSlotForm.class.php
Log:
moving the setup of the value field to its own method so that it can be cleanly
overridden from a base form if one is specified
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalContentSlotForm.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalContentSlotForm.class.php
2010-01-17 22:51:48 UTC (rev 26788)
+++
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalContentSlotForm.class.php
2010-01-17 22:56:08 UTC (rev 26789)
@@ -28,7 +28,12 @@
}
$this->widgetSchema['type'] = new sfWidgetFormChoice(array('choices' =>
$choices));
$this->validatorSchema['type'] = new sfValidatorChoice(array('choices' =>
array_keys($choices)));
-
+
+ $this->setupValueField();
+ }
+
+ protected function setupValueField()
+ {
if (isset($this['value']))
{
$this->useFields(array('value', 'type'));
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" 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/symfony-svn?hl=en.