Author: sevein
Date: Wed Oct 27 04:38:38 2010
New Revision: 8536
Log:
Migrate tab links in user module.
Modified:
trunk/data/fixtures/settings.yml
trunk/lib/task/migrate/QubitMigrate109.class.php
Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml Wed Oct 27 04:25:23 2010 (r8535)
+++ trunk/data/fixtures/settings.yml Wed Oct 27 04:38:38 2010 (r8536)
@@ -3,7 +3,7 @@
name: version
editable: 0
deleteable: 0
- value: 57
+ value: 58
QubitSetting_2:
name: upload_dir
editable: 0
Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php Wed Oct 27 04:25:23
2010 (r8535)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php Wed Oct 27 04:38:38
2010 (r8536)
@@ -82,7 +82,7 @@
$this->activateIsdfPlugin();
case 54:
-
+
// Replace "permalink" property with "slug"
foreach ($this->data['QubitStaticPage'] as $key => $value)
{
@@ -126,6 +126,35 @@
$this->data['QubitMenu'][$key]['path'] =
str_replace(array('create', 'duplicate'), array('add', 'copy'), $value['path']);
}
}
+
+ case 57:
+
+ // Update tab links in user module
+ foreach ($this->data['QubitMenu'] as $key => $value)
+ {
+ switch (@$value['path'])
+ {
+ case 'user/index?id=%currentId%':
+ $this->data['QubitMenu'][$key]['path'] =
'user/index?slug=%currentSlug%';
+
+ break;
+
+ case 'user/indexInformationObjectAcl?id=%currentId%':
+ $this->data['QubitMenu'][$key]['path'] =
'user/indexInformationObjectAcl?slug=%currentSlug%';
+
+ break;
+
+ case 'user/indexActorAcl?id=%currentId%':
+ $this->data['QubitMenu'][$key]['path'] =
'user/indexActorAcl?slug=%currentSlug%';
+
+ break;
+
+ case 'user/indexTermAcl?id=%currentId%':
+ $this->data['QubitMenu'][$key]['path'] =
'user/indexTermAcl?slug=%currentSlug%';
+
+ break;
+ }
+ }
}
// Delete "stub" objects
--
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.