[Jifty-commit] r3859 - in jifty/trunk: lib/Jifty/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Aug 12 16:24:46 EDT 2007


Author: sterling
Date: Sun Aug 12 16:24:45 2007
New Revision: 3859

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Action/Record.pm

Log:


Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Sun Aug 12 16:24:45 2007
@@ -228,13 +228,12 @@
             }
 
             # If it's a select box, setup the available values
-            if ( $info->{render_as} eq 'Select' ) {
+            if ( UNIVERSAL::isa( $refers_to, 'Jifty::Record' ) && $info->{render_as} eq 'Select' ) {
 
                 # Get an unlimited collection
                 my $collection = Jifty::Collection->new(
                     record_class => $refers_to,
                     current_user => $self->record->current_user
-                );
                 $collection->unlimit;
 
                 # Fetch the _brief_description() method


More information about the Jifty-commit mailing list