Revision 137

Date:
2011/09/13 14:50:17
Author:
ahitrov
Revision Log:
Can search by intarray value
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/comps/contenido/sections.html

     
    315 315 my @props = $doc_class->new( $keeper )->structure();
    316 316 my ($prop) = grep { $_->{attr} eq $search_by } @props if @props;
    317 317 if ( ref $prop && ($prop->{type} eq 'integer' || $prop->{type} eq 'checkbox' ||
    318 (($prop->{type} eq 'pickup' || $prop->{type} eq 'lookup') && $search =~ /^\d+$/) ) ) {
    318 (($prop->{type} eq 'pickup' || $prop->{type} eq 'lookup') && $search =~ /^\d+$/) ||
    319 (exists $prop->{db_type} && $prop->{db_type} =~ /integer\[\]/) )) {
    319 320 $filter{$search_by} = int($search);
    320 321 } elsif ( ref $prop && ($prop->{type} eq 'pickup' || $prop->{type} eq 'lookup') && $search =~ /\D/ ) {
    321 322 my $lookup_opts = $prop->{lookup_opts};