Author: Jonathan.Wage
Date: 2010-02-05 04:53:01 +0100 (Fri, 05 Feb 2010)
New Revision: 27585
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue where type cannot be changed after slot
is created
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
2010-02-05 03:47:16 UTC (rev 27584)
+++
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
2010-02-05 03:53:01 UTC (rev 27585)
@@ -188,6 +188,12 @@
$slot = $this->getSlot($name);
}
+ if ($slot->type != $type)
+ {
+ $slot->type = $type;
+ $slot->save();
+ }
+
$slot->setContentRenderedFor($this);
return $slot;
--
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.