[Bps-public-commit] dbix-searchbuilder branch, master, updated. 1.56_03-5-g1882709

Jesse Vincent jesse at bestpractical.com
Thu Aug 26 00:51:50 EDT 2010


The branch, master has been updated
       via  188270910afedf4039af96f6c772b922be9b3872 (commit)
      from  f8eb18d1ef0c91198073fe1fd84bc0b0abcba435 (commit)

Summary of changes:
 SearchBuilder/Record.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 188270910afedf4039af96f6c772b922be9b3872
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed Aug 25 23:49:47 2010 -0400

    slight optimization in __Value - avoid calling _Accessible twice.

diff --git a/SearchBuilder/Record.pm b/SearchBuilder/Record.pm
index 1b7254b..23ff5ac 100755
--- a/SearchBuilder/Record.pm
+++ b/SearchBuilder/Record.pm
@@ -702,7 +702,7 @@ sub __Value {
     my $self = shift;
     my $field = lc shift;
 
-    $field = $self->_Accessible($field, "column") if $self->_Accessible($field, "column");
+    $field = $self->_Accessible($field, "column") || $field;
 
     return $self->{'values'}{$field} if $self->{'fetched'}{$field};
     $self->{'fetched'}{$field} = 1;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list