[interchange-bugs] [rt.icdevgroup.org #30] [Comment] Component editor removes [no-match] section

Gert van der Spoel via RT interchange-comment at rt.icdevgroup.org
Tue Jul 14 16:49:24 UTC 2009


http://rt.icdevgroup.org/Ticket/Display.html?id=30
This is a comment.  It is not sent to the Requestor(s):

This happens in lib/Vend/Interpolate.pm  in:

sub region {  ...

The following block is processed:
       $page =~   s!
                                        \[ ( $mprefix  more[-_]list )  $Optx$Optx$Optx$Optx$Optx \]
                                                ($Some)
                                        \[/\1\]
                                !
                                        tag_more_list($2,$3,$4,$5,$6,$opt,$7)
                                !xige;
        $page =~   s!
                                        \[ ( $mprefix  on[-_]match )\]
                                                ($Some)
                                        \[/\1\]
                                !
                                        $obj->{matches} > 0 ? opt_region(0,0,1,$2,$opt) : ''
                                !xige;
        $page =~   s!
                                        \[ ( $mprefix  no[-_]match )\]
                                                ($Some)
                                        \[/\1\]
                                !
                                        $obj->{matches} > 0 ? '' : opt_region(0,1,$2,$opt)
                                !xige;


If you move the $page =~ s! ..... no[-_]match up above the more-list .. then it is not removed.

However I am not sure that that will not be breaking other things in the process ... 

Any comments?




More information about the interchange-bugs mailing list