Author: Jonathan.Wage
Date: 2010-02-02 20:25:57 +0100 (Tue, 02 Feb 2010)
New Revision: 27441
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/lib/Basesympal_contentActions.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with edit slots page
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
2010-02-02 19:20:05 UTC (rev 27440)
+++
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContent.class.php
2010-02-02 19:25:57 UTC (rev 27441)
@@ -51,6 +51,12 @@
public function construct()
{
+ $this->populateSlotsByName();
+ }
+
+ public function populateSlotsByName()
+ {
+ $this->_slotsByName = array();
foreach ($this->Slots as $slot)
{
$this->_slotsByName[$slot->name] = $slot;
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/lib/Basesympal_contentActions.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/lib/Basesympal_contentActions.class.php
2010-02-02 19:20:05 UTC (rev 27440)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/lib/Basesympal_contentActions.class.php
2010-02-02 19:25:57 UTC (rev 27441)
@@ -184,6 +184,9 @@
$this->dispatcher->notify(new sfEvent($this, 'sympal.load_content',
array('content' => $this->sf_sympal_content)));
+ $this->sf_sympal_content->refresh(true);
+ $this->sf_sympal_content->populateSlotsByName();
+
$this->getContext()->getConfiguration()->getPluginConfiguration('sfSympalEditorPlugin')->loadEditorAssets();
}
--
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.