[Jifty-commit] r7332 - in jifty/trunk: lib/Jifty/Web/Form

Jifty commits jifty-commit at lists.jifty.org
Fri Jul 17 15:50:33 EDT 2009


Author: trs
Date: Fri Jul 17 15:50:32 2009
New Revision: 7332

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web/Form/Field.pm

Log:
 r48622 at zot:  tom | 2009-07-17 15:48:53 -0400
 Revert r7168 and r7169.
 
 They break special collection processing for available_values in Jifty::Action by setting the value in ->new and never calling ->available_values in Jifty::Action.


Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm	Fri Jul 17 15:50:32 2009
@@ -127,7 +127,7 @@
 );
 
 my @semiexposed_fields = qw(
-    label input_name available_values
+    label input_name
 );
 
 sub accessors {
@@ -780,18 +780,6 @@
 
 sub available_values {
     my $self = shift;
-
-    # Setter
-    if (@_) {
-        return $self->_available_values(@_);
-    }
-
-    # If the available_values are available in the field..
-    if (my $available = $self->_available_values) {
-        return @$available;
-    }
-
-    # Otherwise consult the action
     return @{ $self->action->available_values($self->name) };
 }
 


More information about the Jifty-commit mailing list