Author: sevein
Date: Wed Aug 3 12:08:26 2011
New Revision: 9435
Log:
Duplicate rightI18ns objects too
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Wed Aug 3 12:02:30 2011 (r9434)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Wed Aug 3 12:08:26 2011 (r9435)
@@ -418,6 +418,20 @@
$right->act = $sourceRight->act;
$right->basis = $sourceRight->basis;
$right->copyrightNote = $sourceRight->copyrightNote;
+
+ foreach ($sourceRight->rightsI18ns as $sourceRightI18n)
+ {
+ if ($this->context->user->getCulture() == $sourceRight18n->culture)
+ {
+ continue;
+ }
+
+ $rightI18n = new QubitRightsI18n;
+ $rightI18n->copyrightNote = $sourceRightI18n->copyrightNote;
+
+ $right->rightsI18ns[] = $rightI18n;
+ }
+
$right->save();
$relation = new QubitRelation;
--
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.