Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2208 closed defect (fixed)

[patch] Allow filter arguments to be empty strings

Reported by: Matt McClanahan Owned by: Adrian Holovaty
Component: Template system Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm not sure if it makes sense in all cases, but the case that brought it up was finding out that you can't do {{ var|join:"" }}. As a hack, you can do {{ var|join:nonexistantvar }}, but it seems like passing "" as the arg should be allowed.

Attachments (1)

filter-arg-emptystring.diff (678 bytes ) - added by Matt McClanahan 18 years ago.

Download all attachments as: .zip

Change History (2)

by Matt McClanahan, 18 years ago

Attachment: filter-arg-emptystring.diff added

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [3852]) Fixed #2208 -- Allow empty arguments to be passed to filters. Thanks, mattmcc.

Note: See TracTickets for help on using tickets.
Back to Top