Author: jablko
Date: Sun Oct 17 19:00:20 2010
New Revision: 8215
Log:
Handle type field
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Sun Oct 17 18:56:07 2010 (r8214)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/relatedFunctionComponent.class.php
Sun Oct 17 19:00:20 2010 (r8215)
@@ -59,6 +59,28 @@
}
}
+ protected function processField($field)
+ {
+ switch ($field->getName())
+ {
+ case 'type':
+ unset($this->relation->type);
+
+ $value = $this->form->getValue('type');
+ if (isset($value))
+ {
+ $params = $this->context->routing->parse(Qubit::pathInfo($value));
+ $this->relation->type = $params['_sf_route']->resource;
+ }
+
+ break;
+
+ default:
+
+ return parent::processField($field);
+ }
+ }
+
protected function processForm()
{
if (isset($this->request->relations))
--
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.