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

Re: [BUG REPORT] WML 1.7.1, Linux



On Tue, 8 Jun 1999 zany@darkride.net wrote:

> BUG REPORT
> 
> Package: WML 1.7.1
> Operating System: Linux
> 
> Problem Description:
> | Hi,
> | 
> | wml::des::navbar seems to be broken in 1.7.1
> | If there is _no_ select= in navbar:render
> |  _no_ links (a href=) will be created!
> | 
> | Seems to me like
> |  my $idselect = ($select eq $id or $select eq $alias ? 1 : 0);
> | always matches if $select is empty???
> | 
> | Thank you in advance!

You're right, Christian
Thanks for the report.

Below is the patch i commit

As there are still 3 boring bugs, i have created a page dedicated to
these patches under
   http://www.engelschall.com/sw/wml/distrib/

Denis

--- wml_include/des/navbar.src	1999/06/08 10:37:42	1.7
+++ wml_include/des/navbar.src	1999/06/08 15:09:15
@@ -420,7 +420,7 @@
         my $hint   = $B->{HINT};
         my $menu   = $B->{MENU};
 
-        my $idselect = ($select eq $id or $select eq $alias ? 1 : 0);
+        my $idselect = ($select eq $id or ($select eq $alias and $alias ne '') ? 1 : 0);
 
         #
         #   PROLOG

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com