Author: weaverryan
Date: 2010-01-17 23:27:33 +0100 (Sun, 17 Jan 2010)
New Revision: 26785
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/lib/Basesympal_edit_slotActions.class.php
Log:
Making content slot forms have unique form names (and therefor unique form
element id attributes). The non-unique id attributes caused
problems with tinymce - only one editor would render.
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
2010-01-17 21:21:21 UTC (rev 26784)
+++
plugins/sfSympalPlugin/trunk/lib/form/doctrine/sfSympalInlineEditContentSlotForm.class.php
2010-01-17 22:27:33 UTC (rev 26785)
@@ -2,4 +2,10 @@
class sfSympalInlineEditContentSlotForm extends sfSympalContentSlotForm
{
-}
\ No newline at end of file
+ public function setup()
+ {
+ parent::setup();
+
+
$this->widgetSchema->setNameFormat('sf_sympal_content_slot_'.$this->getObject()->id.'[%s]');
+ }
+}
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/lib/Basesympal_edit_slotActions.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/lib/Basesympal_edit_slotActions.class.php
2010-01-17 21:21:21 UTC (rev 26784)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/lib/Basesympal_edit_slotActions.class.php
2010-01-17 22:27:33 UTC (rev 26785)
@@ -35,7 +35,8 @@
public function executeChange_content_slot_type(sfWebRequest $request)
{
- $slot = $request->getParameter('sf_sympal_content_slot');
+ $slotId = $request->getParameter('id');
+ $slot = $request->getParameter('sf_sympal_content_slot_'.$slotId);
$this->contentSlot = $this->_getContentSlot($request);
$this->contentSlot->setType($slot['type']);
--
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.