Author: Jonathan.Wage
Date: 2010-01-13 00:50:55 +0100 (Wed, 13 Jan 2010)
New Revision: 26552
Modified:
plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with content templates
Modified: plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
2010-01-12 23:31:41 UTC (rev 26551)
+++ plugins/sfSympalPlugin/trunk/lib/util/sfSympalFormToolkit.class.php
2010-01-12 23:50:55 UTC (rev 26552)
@@ -105,9 +105,9 @@
$object = $form->getObject();
if ($object instanceof sfSympalContent)
{
- $type = $object->getType()->getName();
+ $type = $object->getType()->getSlug();
} else if ($object instanceof sfSympalContentType) {
- $type = $object->getName();
+ $type = $object->getSlug();
} else {
throw new InvalidArgumentException('Form must be an instance of
sfSympalContentForm or sfSympalContentTypeForm');
}
--
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.