[svn:p5ee] r14402 - p5ee/trunk/App-Repository/lib/App/ValueDomain
[email protected] Tue, 14 Sep 2010 11:09:06 -0700 (PDT)
| Newsgroups | perl.cvs.p5ee |
|---|---|
| Message-ID | <[email protected]> |
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);