Author: Jonathan.Wage
Date: 2010-01-31 18:34:48 +0100 (Sun, 31 Jan 2010)
New Revision: 27362
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing content slot edit form name to include the
slot id to avoid naming conflicts
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
2010-01-31 17:15:41 UTC (rev 27361)
+++
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
2010-01-31 17:34:48 UTC (rev 27362)
@@ -34,12 +34,14 @@
{
if ($this->is_column)
{
- return $this->_getContentSlotColumnForm();
+ $form = $this->_getContentSlotColumnForm();
} else {
$contentSlotTypes = sfSympalConfig::get('content_slot_types');
$className = isset($contentSlotTypes[$this->type]['form']) ?
$contentSlotTypes[$this->type]['form'] : sfSympalConfig::get('inline_editing',
'default_slot_form', 'sfSympalInlineEditContentSlotForm');
- return new $className($this);
+ $form = new $className($this);
}
+
$form->getWidgetSchema()->setNameFormat('sf_sympal_content_slot_'.$this->id.'[%s]');
+ return $form;
}
protected function _getContentSlotColumnForm()
--
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.