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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Apr 12 20:58:32 EDT 2006


Author: autrijus
Date: Wed Apr 12 20:58:31 2006
New Revision: 844

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

Log:
* Jifty::Action::Record: The comment claims:
        # If we're hand-coding a render_as, hints or label, let's use it.
  but then it ignored hand-coded values in the code.  One of them is
  lying, and I agree with the comment, so the code goes away. ;) 

Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Wed Apr 12 20:58:31 2006
@@ -215,7 +215,7 @@
         # If we're hand-coding a render_as, hints or label, let's use it.
         for ( qw(render_as label hints length mandatory sort_order)) { 
         
-            if ( defined $column->$_ and not $info->{$_}) {
+            if ( defined $column->$_ ) {
                  $info->{$_} = $column->$_;
             }
         }


More information about the Jifty-commit mailing list