Author: sevein
Date: Sun Nov 7 03:39:11 2010
New Revision: 8791
Log:
When records are being duplicated, the source item key is called "sourceId".
This affects only ISAD. Fixes issue 1380.
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
==============================================================================
---
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
Sun Nov 7 00:03:33 2010 (r8790)
+++
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/actions/eventComponent.class.php
Sun Nov 7 03:39:11 2010 (r8791)
@@ -43,12 +43,12 @@
$choices[$this->context->routing->generate(null, array($item,
'module' => 'term'))] = $item->__toString();
}
-
+
$this->form->setValidator('type', new sfValidatorString);
$this->form->setWidget('type', new sfWidgetFormSelect(array('choices'
=> $choices)));
break;
-
+
default:
return parent::addField($name);
@@ -78,7 +78,7 @@
$this->form->bind($item);
if ($this->form->isValid())
{
- if (!isset($this->request->source) && isset($item['id']))
+ if (!isset($this->request->sourceId) && isset($item['id']))
{
$params =
$this->context->routing->parse(Qubit::pathInfo($item['id']));
$this->event = $params['_sf_route']->resource;
--
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.