Author: spadkins
Date: Tue Sep 14 11:09:06 2010
New Revision: 14402

Modified:
   p5ee/trunk/App-Repository/lib/App/ValueDomain/Repository.pm

Log:
changed the way options are processed. example passing endrow => 50

Modified: p5ee/trunk/App-Repository/lib/App/ValueDomain/Repository.pm
==============================================================================
--- p5ee/trunk/App-Repository/lib/App/ValueDomain/Repository.pm (original)
+++ p5ee/trunk/App-Repository/lib/App/ValueDomain/Repository.pm Tue Sep 14 
11:09:06 2010
@@ -139,9 +139,9 @@
         if ($rep && $table && $valuecolumn && $params) {
             my @cols = ( $valuecolumn );
             push(@cols, $labelcolumn) if ($labelcolumn);
-            my ($options);
+            my $options = $self->{options} || {};
             if ($self->{order_by}) {
-                $options = { order_by => $self->{order_by} };
+                $options->{order_by} = $self->{order_by};
             }
 
             $rows   = $rep->get_rows($table, $subst_params, \...@cols, 
$options);

Reply via email to