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

Kevin Walsh kevin at cursor.biz
Fri Jul 13 15:48:53 EDT 2007


Kevin Walsh <kevin at cursor.biz> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/



More information about the interchange-users mailing list