[Jifty-commit] r7688 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Wed Dec 2 06:10:51 EST 2009


Author: sartak
Date: Wed Dec  2 06:10:50 2009
New Revision: 7688

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

Log:
Pass argument_values to autocompleters too

Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Wed Dec  2 06:10:50 2009
@@ -1025,12 +1025,12 @@
     # If it's defined on the field, use that autocompleter
     if ( $field_info->{autocompleter}  )
     {
-        return $field_info->{autocompleter}->( $self, $value );
+        return $field_info->{autocompleter}->( $self, $value, $self->argument_values );
     }
 
     # If it's a method on the class, use that autocompleter
     elsif ( $self->can($default_autocomplete) ) {
-        return $self->$default_autocomplete( $value );
+        return $self->$default_autocomplete( $value, $self->argument_values );
     }
 
     # Otherwise, return zip-zero-notta


More information about the Jifty-commit mailing list