Author: jablko
Date: Fri Oct 15 14:39:46 2010
New Revision: 8169
Log:
Delegate to QubitEditAction
Modified:
trunk/apps/qubit/modules/function/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/function/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/function/actions/editAction.class.php Fri Oct
15 14:07:22 2010 (r8168)
+++ trunk/apps/qubit/modules/function/actions/editAction.class.php Fri Oct
15 14:39:46 2010 (r8169)
@@ -146,38 +146,6 @@
break;
- case 'parallelName':
- case 'otherName':
- $criteria = new Criteria;
- $criteria = $this->resource->addotherNamesCriteria($criteria);
-
- switch ($name)
- {
- case 'parallelName':
- $criteria->add(QubitOtherName::TYPE_ID,
QubitTerm::PARALLEL_FORM_OF_NAME_ID);
-
- break;
-
- default:
- $criteria->add(QubitOtherName::TYPE_ID,
QubitTerm::OTHER_FORM_OF_NAME_ID);
- }
-
- $values = $defaults = array();
- if (0 < count($otherNames = QubitOtherName::get($criteria)))
- {
- foreach ($otherNames as $otherName)
- {
- $values[] = $otherName->id;
- $defaults[$otherName->id] = $otherName;
- }
- }
-
- $this->form->setDefault($name, $values);
- $this->form->setValidator($name, new sfValidatorPass);
- $this->form->setWidget($name, new
QubitWidgetFormInputMany(array('defaults' => $defaults)));
-
- break;
-
case 'descriptionStatus':
if (null !== $this->resource->descriptionStatus)
--
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.