[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] search-region using label causes more-list error


Kevin Walsh <suppressed> wrote:
> It seems to work using your supplied page code as a test, but I
> can't guarantee that it won't make a complete pig's breakfast
> of every other search.  Please try it out and report your findings
> back to the list.
> 
To save all that tiresome testing.  Here's a version that works
without having to patch the core:

======================================================================
[calcn]
    if ($Tag->env('PATH_INFO') =~ m:^/scan/MM=:) {
        $my_search_results = 0;
        return;
    }

    my $out = [
        [ 'PSC001' ],
        [ 'PSC002' ],
        [ 'PSC003' ],
        [ 'PSC004' ],
        [ 'PSC005' ],
        [ 'PSC006' ],
        [ 'PSC007' ],
        [ 'PSC008' ],
        [ 'PSC009' ],
        [ 'PSC010' ],
        [ 'PSC011' ],
        [ 'PSC012' ],
        [ 'PSC013' ],
        [ 'PSC014' ],
    ];

    $my_search_results = {
        mv_results => $out,
    };
    undef;
[/calcn]

[search-region object=`$my_search_results` more=1 ml=3]
[search-list]
    [item-code]<br>
[/search-list]
[more-list][more][/more-list]
[/search-region]
======================================================================

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.