Author: sevein
Date: Tue Dec 1 11:42:48 2009
New Revision: 4014
Log:
Update the way parameters are sent to QubitObject->setNote method. Fixes issue
1149.
Modified:
trunk/lib/model/QubitInformationObject.php
Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php Tue Dec 1 00:11:34 2009
(r4013)
+++ trunk/lib/model/QubitInformationObject.php Tue Dec 1 11:42:48 2009
(r4014)
@@ -1466,7 +1466,7 @@
$newTerm->save();
if (isset($options['source']))
{
- $newTerm->setNote(null, $options['source'], QubitTerm::SOURCE_NOTE_ID);
+ $newTerm->setNote(array('note' => $options['source'], 'noteTypeId' =>
QubitTerm::SOURCE_NOTE_ID, 'userId' =>
sfContext::getInstance()->user->getAttribute('user_id')));
}
// associate this new subject term with this information object
$this->addTermRelation($newTerm->getId());
--
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.