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

Jifty commits jifty-commit at lists.jifty.org
Tue May 19 14:32:06 EDT 2009


Author: sartak
Date: Tue May 19 14:32:05 2009
New Revision: 7073

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

Log:
Don't pull the rendered widget out of the cache if arguments were specified

Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Tue May 19 14:32:05 2009
@@ -476,6 +476,12 @@
     my $field = $args{'argument'};
     my $arg_name = $field. '!!' .$args{'render_mode'};
 
+    # They specified some arguments. This means we don't want to reuse the
+    # cached version, since that will ignore the arguments.
+    if (keys(%args) > 2) {
+        delete $self->{_private_form_fields_hash}{$arg_name};
+    }
+
     # This particular field hasn't been added to the form yet
     if ( not exists $self->{_private_form_fields_hash}{$arg_name} ) {
         my $field_info = $self->arguments->{$field};


More information about the Jifty-commit mailing list