Opened 19 years ago
Closed 19 years ago
#1729 closed defect (fixed)
[patch] Null file path fails to generate filename
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | magic-removal |
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
If you have a file field that is null, calling get_FIELD_filename will result in an exception from os.path.join.
I created a simliar solution already implemented in get_FIELD_url to avoid this problem.
Attachments (1)
Change History (3)
by , 19 years ago
Attachment: | NullPath.diff added |
---|
comment:1 by , 19 years ago
Summary: | Null file path fails to generate filename → [patch] Null file path fails to generate filename |
---|
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [2839]) Fixed #1729 -- Changed get_FIELD_filename() to return an empty string when field fiel's value is null. Thanks, rhettg@…