Opened 10 years ago

Closed 10 years ago

Last modified 10 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: UI/UX:


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 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Matt McClanahan

Attachment: filter-arg-emptystring.diff added

comment:1 Changed 10 years ago by Malcolm Tredinnick

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