Author: david
Date: Fri Oct 22 16:04:43 2010
New Revision: 8388
Log:
Handle resourceType autocomplete value.
Modified:
trunk/apps/qubit/modules/event/actions/editComponent.class.php
Modified: trunk/apps/qubit/modules/event/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/event/actions/editComponent.class.php Fri Oct
22 15:39:20 2010 (r8387)
+++ trunk/apps/qubit/modules/event/actions/editComponent.class.php Fri Oct
22 16:04:43 2010 (r8388)
@@ -78,13 +78,14 @@
switch ($field->getName())
{
case 'type':
- unset($this->event->type);
+ case 'resourceType':
+ unset($this->event[$field->getName()]);
- $value = $this->form->getValue('type');
+ $value = $this->form->getValue($field->getName());
if (isset($value))
{
$params = $this->context->routing->parse(Qubit::pathInfo($value));
- $this->event->type = $params['_sf_route']->resource;
+ $this->event[$field->getName()] = $params['_sf_route']->resource;
}
break;
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.