Author: annis
Date: 2010-03-31 10:21:38 +0200 (Wed, 31 Mar 2010)
New Revision: 28909
Modified:
plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/lib/form/ahBaseFormDoctrine.class.php
Log:
fixed logic for moving empty form after existing relations
Modified:
plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/lib/form/ahBaseFormDoctrine.class.php
===================================================================
---
plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/lib/form/ahBaseFormDoctrine.class.php
2010-03-31 08:21:35 UTC (rev 28908)
+++
plugins/ahDoctrineEasyEmbeddedRelationsPlugin/trunk/lib/form/ahBaseFormDoctrine.class.php
2010-03-31 08:21:38 UTC (rev 28909)
@@ -87,7 +87,10 @@
unset($this[$relationName]);
}
- if (isset($relations[$relationName]['newFormAfterExistingRelations']) ||
$relations[$relationName]['newFormAfterExistingRelations'] &&
isset($this['new_'.$relationName]))
+ if (
+ isset($relations[$relationName]['newFormAfterExistingRelations']) &&
$relations[$relationName]['newFormAfterExistingRelations'] &&
+ && isset($this[$relationName]) && isset($this['new_'.$relationName])
+ )
{
$this->getWidgetSchema()->moveField('new_'.$relationName,
sfWidgetFormSchema::AFTER, $relationName);
}
--
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.