Author: Jonathan.Wage
Date: 2010-02-18 02:49:55 +0100 (Thu, 18 Feb 2010)
New Revision: 28104
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalSiteForm.class.php
Log:
[1.4][sfSympalPlugin][1.0] Disallowing the editing of the site slug which is
also the application name which breaks the application
Modified:
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalSiteForm.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalSiteForm.class.php
2010-02-18 01:46:35 UTC (rev 28103)
+++
plugins/sfSympalPlugin/trunk/lib/form/doctrine/PluginsfSympalSiteForm.class.php
2010-02-18 01:49:55 UTC (rev 28104)
@@ -9,4 +9,14 @@
*/
abstract class PluginsfSympalSiteForm extends BasesfSympalSiteForm
{
+ public function setup()
+ {
+ parent::setup();
+
+ // Don't allow editing of slug if we're dealing with an already existing
site/application
+ if (!$this->isNew())
+ {
+ unset($this['slug']);
+ }
+ }
}
\ No newline at end of file
--
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.