Author: uncleringo
Date: 2010-03-02 16:05:22 +0100 (Tue, 02 Mar 2010)
New Revision: 28344
Modified:
plugins/sfTrafficCMSPlugin/trunk/lib/form/TrafficCMSBaseForm.class.php
Log:
Fixed the bug with deleting embedded models and not getting an error message
about it!
Modified: plugins/sfTrafficCMSPlugin/trunk/lib/form/TrafficCMSBaseForm.class.php
===================================================================
--- plugins/sfTrafficCMSPlugin/trunk/lib/form/TrafficCMSBaseForm.class.php
2010-03-02 14:51:56 UTC (rev 28343)
+++ plugins/sfTrafficCMSPlugin/trunk/lib/form/TrafficCMSBaseForm.class.php
2010-03-02 15:05:22 UTC (rev 28344)
@@ -48,9 +48,11 @@
if (isset($values['_delete_embedded']))
{
unset($taintedValues['embedded_' .
$model_name_to_embed][$form_name]);
+ unset($taintedFiles['embedded_' . $model_name_to_embed][$form_name]);
if (empty($taintedValues['embedded_' . $model_name_to_embed]))
{
unset($taintedValues['embedded_' . $model_name_to_embed]);
+ unset($taintedFiles['embedded_' . $model_name_to_embed]);
}
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.