Author: sevein
Date: Sun Oct 10 12:07:50 2010
New Revision: 8053

Log:
Bump data version and update migration script to add descriptionUpdates node to 
admin menu. Fixes issue 1755.

Modified:
   trunk/data/fixtures/settings.yml
   trunk/lib/task/migrate/QubitMigrate109.class.php

Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml    Sun Oct 10 12:06:01 2010        (r8052)
+++ trunk/data/fixtures/settings.yml    Sun Oct 10 12:07:50 2010        (r8053)
@@ -3,7 +3,7 @@
     name: version
     editable: 0
     deleteable: 0
-    value: 50
+    value: 51
   QubitSetting_2:
     name: upload_dir
     editable: 0

Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php    Sun Oct 10 12:06:01 
2010        (r8052)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php    Sun Oct 10 12:07:50 
2010        (r8053)
@@ -68,6 +68,9 @@
 
       case 49:
         $this->addFunctionUiLabel();
+
+      case 50:
+        $this->addDescriptionUpdatesToAdminMenu();
     }
 
     // Delete "stub" objects
@@ -403,7 +406,25 @@
 
     return $this;
   }
-  
+
+  /**
+   * Ver 51: Add descriptionUpdates to Admin menu
+   *
+   * @return QubitMigrate109 this object
+   */
+  protected function addDescriptionUpdatesToAdminMenu()
+  {
+    // $recentUpdatesMenu = array(
+    $this->data['QubitMenu']['QubitMenu_admin_descriptionUpdates'] = array(
+      'parent_id' => '<?php echo QubitMenu::ADMIN_ID."\n" ?>',
+      'source_culture' => 'en',
+      'name' => 'descriptionUpdates',
+      'label' => array('en' => 'Description updates'),
+      'path' => 'search/descriptionUpdates');
+
+    return $this;
+  }
+
   /**
    * Sort information objects by lft value so that parent objects are inserted
    * before their children.

-- 
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.

Reply via email to