[Jifty-commit] r4322 - jifty/trunk/lib/Jifty/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 28 02:24:13 EDT 2007


Author: ruz
Date: Sun Oct 28 02:24:12 2007
New Revision: 4322

Modified:
   jifty/trunk/lib/Jifty/Action/Record.pm

Log:
* if refers_to is not mandatory field then add 'no_value' option to select box

Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Sun Oct 28 02:24:12 2007
@@ -249,6 +249,10 @@
                         collection => $collection
                     }
                 ];
+                unshift @{ $info->{valid_values} }, {
+                    display => _('no value'),
+                    value   => '',
+                } unless $column->mandatory;
             } 
             
             # If the reference is X-to-many instead, skip it


More information about the Jifty-commit mailing list