Author: jablko
Date: Mon Oct 25 08:13:19 2010
New Revision: 8458
Log:
Cosmetic change, nice
Modified:
trunk/apps/qubit/modules/default/actions/editAction.class.php
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/default/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/default/actions/editAction.class.php Mon Oct
25 05:31:59 2010 (r8457)
+++ trunk/apps/qubit/modules/default/actions/editAction.class.php Mon Oct
25 08:13:19 2010 (r8458)
@@ -87,8 +87,7 @@
$value = $defaults = array();
foreach ($this[$name] = QubitOtherName::get($criteria) as $item)
{
- $value[] = $item->id;
- $defaults[$item->id] = $item;
+ $defaults[$value[] = $item->id] = $item;
}
$this->form->setDefault($name, $value);
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Mon Oct 25 05:31:59 2010 (r8457)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Mon Oct 25 08:13:19 2010 (r8458)
@@ -259,8 +259,7 @@
$value = $choices = array();
foreach ($this[$name] = QubitObjectTermRelation::get($criteria) as
$item)
{
- $value[] = $this->context->routing->generate(null,
array($item->term, 'module' => 'term'));
- $choices[$this->context->routing->generate(null, array($item->term,
'module' => 'term'))] = $item->term;
+ $choices[$value[] = $this->context->routing->generate(null,
array($item->term, 'module' => 'term'))] = $item->term;
}
$this->form->setDefault($name, $value);
@@ -277,8 +276,7 @@
$value = $choices = array();
foreach ($this->nameAccessPoints = QubitRelation::get($criteria) as
$item)
{
- $value[] = $this->context->routing->generate(null,
array($item->object, 'module' => 'actor'));
- $choices[$this->context->routing->generate(null,
array($item->object, 'module' => 'actor'))] = $item->object;
+ $choices[$value[] = $this->context->routing->generate(null,
array($item->object, 'module' => 'actor'))] = $item->object;
}
$this->form->setDefault($name, $value);
@@ -533,8 +531,8 @@
}
if (0 < $childLevelFormData['levelOfDescription']
- || 0 < strlen($childLevelFormData['identifier'])
- || 0 < strlen($childLevelFormData['title']))
+ || 0 < strlen($childLevelFormData['identifier'])
+ || 0 < strlen($childLevelFormData['title']))
{
$this->resource->informationObjectsRelatedByparentId[] = $childLevel;
}
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
Mon Oct 25 05:31:59 2010 (r8457)
+++
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/editAction.class.php
Mon Oct 25 08:13:19 2010 (r8458)
@@ -103,8 +103,7 @@
$value = $choices = array();
foreach ($this->events = QubitEvent::get($criteria) as $item)
{
- $value[] = $this->context->routing->generate(null,
array($item->actor, 'module' => 'actor'));
- $choices[$this->context->routing->generate(null, array($item->actor,
'module' => 'actor'))] = $item->actor;
+ $choices[$value[] = $this->context->routing->generate(null,
array($item->actor, 'module' => 'actor'))] = $item->actor;
}
$this->form->setDefault('creators', $value);
--
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.