Author: david
Date: Thu Mar 10 16:22:49 2011
New Revision: 9027

Log:
Generate slugs for terms

Modified:
   trunk/lib/task/propelGenerateSlugsTask.class.php

Modified: trunk/lib/task/propelGenerateSlugsTask.class.php
==============================================================================
--- trunk/lib/task/propelGenerateSlugsTask.class.php    Thu Mar 10 00:03:02 
2011        (r9026)
+++ trunk/lib/task/propelGenerateSlugsTask.class.php    Thu Mar 10 16:22:49 
2011        (r9027)
@@ -60,7 +60,8 @@
 
     $tables = array(
       'actor' => 'QubitActor',
-      'information_object' => 'QubitInformationObject'
+      'information_object' => 'QubitInformationObject',
+      'term' => 'QubitTerm'
     );
 
     // Create hash of slugs already in database
@@ -83,6 +84,10 @@
         case 'information_object':
           $sql = 'SELECT base.id, i18n.title';
           break;
+
+        case 'term':
+          $sql = 'SELECT base.id, i18n.name';
+          break;
       }
 
       $sql .= ' FROM '.constant($classname.'::TABLE_NAME').' base';

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