Author: francois
Date: 2010-05-14 11:49:06 +0200 (Fri, 14 May 2010)
New Revision: 29460
Modified:
plugins/sfPropel15Plugin/trunk/lib/form/sfFormPropel.class.php
Log:
[sfPropel15Plugin] Fixed additional form ordering for embedded relations (WIP)
Modified: plugins/sfPropel15Plugin/trunk/lib/form/sfFormPropel.class.php
===================================================================
--- plugins/sfPropel15Plugin/trunk/lib/form/sfFormPropel.class.php
2010-05-14 08:55:48 UTC (rev 29459)
+++ plugins/sfPropel15Plugin/trunk/lib/form/sfFormPropel.class.php
2010-05-14 09:49:06 UTC (rev 29460)
@@ -117,6 +117,7 @@
while (array_key_exists($name . $i, $taintedValues))
{
$this->embedForm($name . $i, clone $form);
+ $this->getWidgetSchema()->moveField($name . $i,
sfWidgetFormSchema::BEFORE, $name);
$i++;
}
}
@@ -133,6 +134,7 @@
while (array_key_exists($name . $i, $taintedValuesCopy))
{
$target->embedForm($name . $i, clone $form);
+ $target->getWidgetSchema()->moveField($name . $i,
sfWidgetFormSchema::BEFORE, $name);
$i++;
// the parent form schema is not updated when updating an embedded
form
// so we must embed it again
--
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.