/[cvs]/nfo/perl/libs/Data/Storage/Handler/Tangram.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Storage/Handler/Tangram.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47 by jonen, Tue Aug 31 14:26:08 2004 UTC revision 1.48 by jonen, Thu Oct 28 11:35:51 2004 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.48  2004/10/28 11:35:51  jonen
7    #  + bugfix related to select-criterias(filter)
8    #
9  #  Revision 1.47  2004/08/31 14:26:08  jonen  #  Revision 1.47  2004/08/31 14:26:08  jonen
10  #  updated  #  updated
11  #  #
# Line 724  sub sendQuery { Line 727  sub sendQuery {
727            
728      } elsif (my $guid = $query->{options}->{GUID}) {      } elsif (my $guid = $query->{options}->{GUID}) {
729        $type = 'TRANSPARENT';        $type = 'TRANSPARENT';
730        $query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ];            if(ref($query->{criterias}) eq 'ARRAY') {
731            push @{$query->{criterias}}, { key => 'guid', op => 'eq', val => $guid };
732          } else {
733            $query->{criterias} = [ { key => 'guid', op => 'eq', val => $guid } ];
734          }
735        }
736      # if operator is different (dispatcher for 'getListFiltered')      # if operator is different (dispatcher for 'getListFiltered')
737      } elsif (my $op = $query->{options}->{op}) {      if (my $op = $query->{options}->{op}) {
738        $type = 'TRANSPARENT';        $type = 'TRANSPARENT';
739        $query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ];            if(ref($query->{criterias}) eq 'ARRAY') {
740            push @{$query->{criterias}}, { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} };
741          } else {
742            $query->{criterias} = [ { key => $query->{options}->{meta_label}, op => $op, val => $query->{options}->{meta_value} } ];    
743          }
744      }      }
745        
746      # HACK: special case: querying by id does not translate into a common tangram query      # HACK: special case: querying by id does not translate into a common tangram query

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed