Author: sevein
Date: Sat Jan 21 13:44:32 2012
New Revision: 10742
Log:
Update form code to process the level of description as a route instead of id.
Fixes issue 2172.
Modified:
trunk/apps/qubit/modules/informationobject/actions/multiFileUploadAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/multiFileUploadAction.class.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/actions/multiFileUploadAction.class.php
Sat Jan 21 00:03:41 2012 (r10741)
+++
trunk/apps/qubit/modules/informationobject/actions/multiFileUploadAction.class.php
Sat Jan 21 13:44:32 2012 (r10742)
@@ -103,9 +103,10 @@
$informationObject->title = $title;
}
- if (0 != intval($levelOfDescriptionId =
$this->form->getValue('level_of_description_id')))
+ if (null !== $levelOfDescription =
$this->form->getValue('levelOfDescription'))
{
- $informationObject->levelOfDescriptionId = $levelOfDescriptionId;
+ $params =
$this->context->routing->parse(Qubit::pathInfo($levelOfDescription));
+ $informationObject->levelOfDescription =
$params['_sf_route']->resource;
}
$informationObject->setStatus(array('typeId' =>
QubitTerm::STATUS_TYPE_PUBLICATION_ID, 'statusId' =>
sfConfig::get('app_defaultPubStatus')));
--
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.