[Jifty-commit] r7235 - jifty/trunk/lib/Jifty/Plugin/SetupWizard

Jifty commits jifty-commit at lists.jifty.org
Thu Jun 11 15:13:15 EDT 2009


Author: sartak
Date: Thu Jun 11 15:13:14 2009
New Revision: 7235

Modified:
   jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm

Log:
Set empty_is_undef for optional database fields

Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	Thu Jun 11 15:13:14 2009
@@ -105,7 +105,7 @@
 
     outs_raw($action->form_field('value' => %value_args));
 
-    for my $field (qw/field context target_file/) {
+    for my $field (qw/field context target_file empty_is_undef/) {
         outs_raw($action->form_field(
             $field,
             render_as => 'hidden',
@@ -199,6 +199,7 @@
         value_args => {
             hints => _('The domain name of your database server (for example, db.example.com)'),
         },
+        empty_is_undef => 1,
     );
 
     config_field(
@@ -207,11 +208,13 @@
         value_args => {
             hints => _('Leave blank to use the default value for your database'),
         },
+        empty_is_undef => 1,
     );
 
     config_field(
         field   => 'User',
         context => '/framework/Database',
+        empty_is_undef => 1,
     );
 
     config_field(
@@ -220,6 +223,7 @@
         value_args => {
             render_as => 'password',
         },
+        empty_is_undef => 1,
     );
 }
 


More information about the Jifty-commit mailing list