[Bug 686] New: Default macro parameter not passed to macro filter

View: New views
2 Messages — Rating Filter:   Alert me  

[Bug 686] New: Default macro parameter not passed to macro filter

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=686

           Summary: Default macro parameter not passed to macro filter
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Web Support
        AssignedTo: helma-dev@...
        ReportedBy: interface@...


If I assign a default value to a macro this value is not passed to a
consecutive filter inside the macro:

res.handlers.debug = {
   macro_macro: function() {
      res.write("");
   },
   filter_filter: function(value) {
      res.write(value + "bar");
   }
}
renderSkin(createSkin("<% debug.macro default=foo | debug.filter %>"));

// Result: nullbar

I would expect the default value to be passed to the filter_filter() method:

// Result: foobar

Is this the desired behaviour or a bug that should be fixed?

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 686] Default macro parameter not passed to macro filter

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=686


tobi <interface@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.7.0




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev