Author: jablko
Date: Wed Oct 27 13:18:59 2010
New Revision: 8566
Log:
Represent empty values with NULL in 1.1
Modified:
trunk/css/form.css
trunk/data/fixtures/settings.yml
trunk/lib/task/migrate/QubitMigrate109.class.php
Modified: trunk/css/form.css
==============================================================================
--- trunk/css/form.css Wed Oct 27 12:56:16 2010 (r8565)
+++ trunk/css/form.css Wed Oct 27 13:18:59 2010 (r8566)
@@ -8,31 +8,6 @@
- all other graphical elements are handled by graphic.css */
/*********************************************************
- UNIVERSAL FORM PROPERTIES
-**********************************************************/
-
-form ul.radio_list
-{
- padding: 0;
- margin: 0;
- list-style-image: none;
-}
-
-form ul.radio_list li
-{
- background: none;
- padding: 0;
- list-style-type: none;
-}
-
-form ul.radio_list li label
-{
- display: inline;
- font-weight: normal;
- color: black;
-}
-
-/*********************************************************
LANGUAGE - SELECTBOX
**********************************************************/
Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml Wed Oct 27 12:56:16 2010 (r8565)
+++ trunk/data/fixtures/settings.yml Wed Oct 27 13:18:59 2010 (r8566)
@@ -3,7 +3,7 @@
name: version
editable: 0
deleteable: 0
- value: 59
+ value: 60
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 12:56:16
2010 (r8565)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php Wed Oct 27 13:18:59
2010 (r8566)
@@ -160,11 +160,31 @@
foreach ($this->data['QubitEvent'] as $key => $value)
{
- if (isset($value['date_display'))
+ if (isset($value['date_display']))
{
$this->data['QubitEvent'][$key]['date'] = $value['date_display'];
- unset($this->data['QubitEvent'][$key]['date_display'];
+ unset($this->data['QubitEvent'][$key]['date_display']);
+ }
+ }
+
+ case 59:
+
+ foreach ($this->data['QubitEvent'] as $key => $value)
+ {
+ if (0 < strlen(@$value['date']))
+ {
+ unset($this->data['QubitEvent'][$key]['date']);
+ }
+
+ if ('0000-00-00' == @$value['end_date'])
+ {
+ unset($this->data['QubitEvent'][$key]['end_date']);
+ }
+
+ if ('0000-00-00' == @$value['start_date'])
+ {
+ unset($this->data['QubitEvent'][$key]['start_date']);
}
}
}
--
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.