Author: jablko
Date: Wed Oct 27 13:40:23 2010
New Revision: 8568

Log:
Previously events with same start and end date were represented with just a 
start date

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 13:26:19 2010        (r8567)
+++ trunk/data/fixtures/settings.yml    Wed Oct 27 13:40:23 2010        (r8568)
@@ -3,7 +3,7 @@
     name: version
     editable: 0
     deleteable: 0
-    value: 60
+    value: 61
   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 13:26:19 
2010        (r8567)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php    Wed Oct 27 13:40:23 
2010        (r8568)
@@ -187,6 +187,16 @@
             unset($this->data['QubitEvent'][$key]['start_date']);
           }
         }
+
+      case 60:
+
+        foreach ($this->data['QubitEvent'] as $key => $value)
+        {
+          if (!isset($value['end_date']) && isset($value['start_date']))
+          {
+            $this->data['QubitEvent'][$key]['end_date'] = $value['start_date'];
+          }
+        }
     }
 
     // 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.

Reply via email to