Author: david
Date: Thu Oct 14 14:35:26 2010
New Revision: 8126
Log:
Add migration for default publication status setting. Refs issue #1658.
Modified:
trunk/data/fixtures/settings.yml
trunk/lib/task/migrate/QubitMigrate109.class.php
Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml Thu Oct 14 14:18:55 2010 (r8125)
+++ trunk/data/fixtures/settings.yml Thu Oct 14 14:35:26 2010 (r8126)
@@ -3,7 +3,7 @@
name: version
editable: 0
deleteable: 0
- value: 51
+ value: 52
QubitSetting_2:
name: upload_dir
editable: 0
Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php Thu Oct 14 14:18:55
2010 (r8125)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php Thu Oct 14 14:35:26
2010 (r8126)
@@ -71,6 +71,9 @@
case 50:
$this->addDescriptionUpdatesToAdminMenu();
+
+ case 51:
+ $this->addDefaultPubStatusSetting();
}
// Delete "stub" objects
@@ -426,6 +429,22 @@
}
/**
+ * Ver 52: Add default publication status with initial value "draft"
+ *
+ * @return QubitMigrate109 this object
+ */
+ protected function addDefaultPubStatusSetting()
+ {
+ $this->data['QubitSetting']['QubitSetting_default_pub_status'] = array(
+ 'name' => 'defaultPubStatus',
+ 'editable' => 1,
+ 'value' => '<?php echo QubitTerm::PUBLICATION_STATUS_DRAFT_ID."\n" ?>'
+ );
+
+ 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.