Author: francois
Date: 2010-04-27 17:16:08 +0200 (Tue, 27 Apr 2010)
New Revision: 29271
Modified:
plugins/sfPropel15Plugin/trunk/lib/generator/sfPropelGenerator.class.php
Log:
[sfPropel15Plugin] Fixed regression in forms embedding with admin15 theme
Modified:
plugins/sfPropel15Plugin/trunk/lib/generator/sfPropelGenerator.class.php
===================================================================
--- plugins/sfPropel15Plugin/trunk/lib/generator/sfPropelGenerator.class.php
2010-04-27 11:43:44 UTC (rev 29270)
+++ plugins/sfPropel15Plugin/trunk/lib/generator/sfPropelGenerator.class.php
2010-04-27 15:16:08 UTC (rev 29271)
@@ -517,9 +517,9 @@
{
foreach ($unusedFields as $field)
{
- // ignore primary keys and CSRF
+ // ignore primary keys, CSRF, and embedded forms
if ($form->getWidget($field) instanceof sfWidgetFormInputHidden
- || $form->getCSRFFieldName() == $field)
+ || $form->getWidget($field) instanceof sfWidgetFormSchemaDecorator)
{
continue;
}
--
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.