#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)
Change History (2)
by , 19 years ago
| Attachment: | filter-arg-emptystring.diff added |
|---|
comment:1 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [3852]) Fixed #2208 -- Allow empty arguments to be passed to filters. Thanks, mattmcc.